1 { lib, bundlerEnv, ruby, buildGoModule, fetchFromGitHub }:
3 # needed for manpage generation
14 src = fetchFromGitHub {
18 sha256 = "sha256-M2Gk+/l1tNlIAe1/fR1WLEOey+tjCUmMAujc76gmeZA=";
21 vendorHash = "sha256-9+x7HrbXRoS/7ZADWwhsbynQLr3SyCbcsp9QnSubov0=";
23 nativeBuildInputs = [ gems ];
25 ldflags = [ "-s" "-w" ];
27 # set HOME, otherwise bundler will insert stuff in the manpages
29 HOME=$PWD make man SHELL=$SHELL
34 cp -r build/man $out/share
38 description = "A small library to manage encrypted secrets using asymmetric encryption";
39 mainProgram = "ejson";
40 license = licenses.mit;
41 homepage = "https://github.com/Shopify/ejson";
42 maintainers = [ maintainers.manveru ];