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
41
pkgs/development/tools/parsing/jshon/default.nix
Normal file
41
pkgs/development/tools/parsing/jshon/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ stdenv, lib, fetchFromGitHub, fetchpatch, jansson }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jshon";
|
||||
version = "20170302";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keenerd";
|
||||
repo = "jshon";
|
||||
rev = "d919aeaece37962251dbe6c1ee50f0028a5c90e4";
|
||||
sha256 = "1x4zfmsjq0l2y994bxkhx3mn5vzjxxr39iib213zjchi9h6yxvnc";
|
||||
};
|
||||
|
||||
buildInputs = [ jansson ];
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/keenerd/jshon/pull/62
|
||||
url = "https://github.com/keenerd/jshon/commit/96b4e9dbf578be7b31f29740b608aa7b34df3318.patch";
|
||||
sha256 = "0kwbn3xb37iqb5y1n8vhzjiwlbg5jmki3f38pzakc24kzc5ksmaa";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch =
|
||||
''
|
||||
substituteInPlace Makefile --replace "/usr/" "/"
|
||||
'';
|
||||
|
||||
preInstall =
|
||||
''
|
||||
export DESTDIR=$out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://kmkeen.com/jshon";
|
||||
description = "JSON parser designed for maximum convenience within the shell";
|
||||
license = licenses.free;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ rushmorem ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue