ameba: init at 0.10.1
This commit is contained in:
parent
8d465dfd4b
commit
975195a474
42
pkgs/development/tools/ameba/default.nix
Normal file
42
pkgs/development/tools/ameba/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -9487,6 +9487,8 @@ in
|
|||||||
alloy5
|
alloy5
|
||||||
alloy;
|
alloy;
|
||||||
|
|
||||||
|
ameba = callPackage ../development/tools/ameba { };
|
||||||
|
|
||||||
augeas = callPackage ../tools/system/augeas { };
|
augeas = callPackage ../tools/system/augeas { };
|
||||||
|
|
||||||
inherit (callPackage ../tools/admin/ansible { })
|
inherit (callPackage ../tools/admin/ansible { })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user