nixpkgs/pkgs/development/interpreters/joker/default.nix

34 lines
802 B
Nix
Raw Normal View History

2017-10-29 23:09:00 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "joker-${version}";
2019-06-12 03:34:12 +00:00
version = "0.12.4";
2017-10-29 23:09:00 +00:00
goPackagePath = "github.com/candid82/joker";
src = fetchFromGitHub {
rev = "v${version}";
owner = "candid82";
repo = "joker";
2019-06-12 03:34:12 +00:00
sha256 = "1swi991khmyhxn6w6xsdqp1wbyx3qmd9d7yhpwvqasyxp8gg3szm";
2017-10-29 23:09:00 +00:00
};
preBuild = "go generate ./...";
2019-06-12 03:34:12 +00:00
postBuild = "rm go/bin/sum256dir";
2017-10-29 23:09:00 +00:00
dontInstallSrc = true;
excludedPackages = "gen"; # Do not install private generators.
2017-10-29 23:09:00 +00:00
goDeps = ./deps.nix;
meta = with stdenv.lib; {
homepage = https://github.com/candid82/joker;
description = "A small Clojure interpreter and linter written in Go";
license = licenses.epl10;
platforms = platforms.all;
maintainers = with maintainers; [ andrestylianos ];
};
}