mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
30 lines
772 B
Nix
30 lines
772 B
Nix
{ lib, buildGoModule, fetchFromGitHub, testers, go-jsonnet }:
|
|
|
|
buildGoModule rec {
|
|
pname = "go-jsonnet";
|
|
version = "0.20.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-P69tguBrFF/CSCOfHjCfBT5710oJdhZDh3kMCbc32eE=";
|
|
};
|
|
|
|
vendorHash = "sha256-j1fTOUpLx34TgzW94A/BctLrg9XoTtb3cBizhVJoEEI=";
|
|
|
|
subPackages = [ "cmd/jsonnet*" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = go-jsonnet;
|
|
version = "v${version}";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of Jsonnet in pure Go";
|
|
homepage = "https://github.com/google/go-jsonnet";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nshalman aaronjheng ];
|
|
mainProgram = "jsonnet";
|
|
};
|
|
}
|