uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
43
pkgs/development/tools/ejson/default.nix
Normal file
43
pkgs/development/tools/ejson/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, bundlerEnv, ruby, buildGoModule, fetchFromGitHub }:
|
||||
let
|
||||
# needed for manpage generation
|
||||
gems = bundlerEnv {
|
||||
name = "ejson-gems";
|
||||
gemdir = ./.;
|
||||
inherit ruby;
|
||||
};
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "ejson";
|
||||
version = "1.3.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Shopify";
|
||||
repo = "ejson";
|
||||
rev = "v${version}";
|
||||
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
|
||||
postBuild = ''
|
||||
HOME=$PWD make man SHELL=$SHELL
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share
|
||||
cp -r build/man $out/share
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A small library to manage encrypted secrets using asymmetric encryption";
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/Shopify/ejson";
|
||||
maintainers = [ maintainers.manveru ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue