3
0
Fork 0
forked from mirrors/nixpkgs

ameba: init at 0.10.1

This commit is contained in:
Kim Burgess 2019-10-21 18:35:26 +10:00 committed by Lassulus
parent 8d465dfd4b
commit 975195a474
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{ stdenv, lib, fetchFromGitHub, crystal, shards }:
stdenv.mkDerivation {
pname = "ameba";
version = "0.10.1";
src = fetchFromGitHub {
owner = "crystal-ameba";
repo = "ameba";
rev = "v0.10.1";
sha256 = "0dcw7px7g0c5pxpdlirhirqzhcc7gdwdfiwb9kgm4x1k74ghjgxq";
};
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; {
description = "A static code analysis tool for Crystal";
homepage = https://crystal-ameba.github.io;
license = licenses.mit;
maintainers = with maintainers; [ kimburgess ];
};
}

View file

@ -9487,6 +9487,8 @@ in
alloy5
alloy;
ameba = callPackage ../development/tools/ameba { };
augeas = callPackage ../tools/system/augeas { };
inherit (callPackage ../tools/admin/ansible { })