ejson: 1.2.1 -> 1.3.3
This commit is contained in:
parent
23684fc690
commit
91473f20c4
1 changed files with 13 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, bundlerEnv, ruby, buildGoPackage, fetchFromGitHub }:
|
{ lib, bundlerEnv, ruby, buildGoModule, fetchFromGitHub }:
|
||||||
let
|
let
|
||||||
# needed for manpage generation
|
# needed for manpage generation
|
||||||
gems = bundlerEnv {
|
gems = bundlerEnv {
|
||||||
|
@ -6,27 +6,27 @@ let
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
};
|
};
|
||||||
in buildGoPackage rec {
|
in
|
||||||
|
buildGoModule rec {
|
||||||
pname = "ejson";
|
pname = "ejson";
|
||||||
version = "1.2.1";
|
version = "1.3.3";
|
||||||
rev = "v${version}";
|
|
||||||
|
|
||||||
nativeBuildInputs = [ gems ];
|
|
||||||
|
|
||||||
goPackagePath = "github.com/Shopify/ejson";
|
|
||||||
subPackages = [ "cmd/ejson" ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Shopify";
|
owner = "Shopify";
|
||||||
repo = "ejson";
|
repo = "ejson";
|
||||||
inherit rev;
|
rev = "v${version}";
|
||||||
sha256 = "09356kp059hbzmqpzlz4b3agg93yqqygh5l5ddbxcsaqx4qiwdr7";
|
sha256 = "sha256-M2Gk+/l1tNlIAe1/fR1WLEOey+tjCUmMAujc76gmeZA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-9+x7HrbXRoS/7ZADWwhsbynQLr3SyCbcsp9QnSubov0=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ gems ];
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
# set HOME, otherwise bundler will insert stuff in the manpages
|
# set HOME, otherwise bundler will insert stuff in the manpages
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cd go/src/$goPackagePath
|
HOME=$PWD make man SHELL=$SHELL
|
||||||
HOME=$PWD make man
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -38,7 +38,6 @@ in buildGoPackage rec {
|
||||||
description = "A small library to manage encrypted secrets using asymmetric encryption";
|
description = "A small library to manage encrypted secrets using asymmetric encryption";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
homepage = "https://github.com/Shopify/ejson";
|
homepage = "https://github.com/Shopify/ejson";
|
||||||
platforms = platforms.unix;
|
|
||||||
maintainers = [ maintainers.manveru ];
|
maintainers = [ maintainers.manveru ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue