ameba: 0.12.0 -> 0.12.1
This commit is contained in:
parent
4805be654d
commit
61660a7aeb
@ -1,38 +1,16 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, crystal, shards }:
|
{ stdenv, lib, fetchFromGitHub, crystal }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
crystal.buildCrystalPackage rec {
|
||||||
pname = "ameba";
|
pname = "ameba";
|
||||||
version = "0.12.0";
|
version = "0.12.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "crystal-ameba";
|
owner = "crystal-ameba";
|
||||||
repo = "ameba";
|
repo = "ameba";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0g68yijbm2j4ig536fwq49d1z7x2iv9kp4g3gjklf5zn1sbqhm12";
|
sha256 = "0c2j2qki0czkpsqxv75qg95pk9f0w4rqa5ln07rs4bj9dk2lrr3l";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ crystal shards ];
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
runHook preBuild
|
|
||||||
shards build --release
|
|
||||||
runHook postBuild
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
install -Dm755 -t $out/bin bin/ameba
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
runHook preCheck
|
|
||||||
crystal spec
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A static code analysis tool for Crystal";
|
description = "A static code analysis tool for Crystal";
|
||||||
homepage = "https://crystal-ameba.github.io";
|
homepage = "https://crystal-ameba.github.io";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user