diff options
author | Kim Burgess <kim@acaprojects.com> | 2019-10-21 18:35:26 +1000 |
---|---|---|
committer | Lassulus <github@lassul.us> | 2019-12-08 15:27:33 +0100 |
commit | 975195a4743fabddb8410ef7a204501a70fc4bf5 (patch) | |
tree | 0f60711796a11955b46881eef23a740a8b848e6e /pkgs/development/tools | |
parent | 8d465dfd4b3a2c250d61cb24cf04cdb8ee7cf423 (diff) | |
download | nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar.gz nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar.bz2 nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar.lz nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar.xz nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.tar.zst nixpkgs-975195a4743fabddb8410ef7a204501a70fc4bf5.zip |
ameba: init at 0.10.1
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/ameba/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/tools/ameba/default.nix b/pkgs/development/tools/ameba/default.nix new file mode 100644 index 00000000000..1361dedde3c --- /dev/null +++ b/pkgs/development/tools/ameba/default.nix @@ -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 ]; + }; +} |