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
35
pkgs/tools/text/replace/default.nix
Normal file
35
pkgs/tools/text/replace/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "replace";
|
||||
version = "2.24";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://hpux.connect.org.uk/ftp/hpux/Users/replace-${version}/replace-${version}-src-11.31.tar.gz";
|
||||
sha256 = "18hkwhaz25s6209n5mpx9hmkyznlzygqj488p2l7nvp9zrlxb9sf";
|
||||
};
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
makeFlags = [
|
||||
"TREE=\$(out)"
|
||||
"MANTREE=\$(TREE)/share/man"
|
||||
"CC=${stdenv.cc.targetPrefix}cc"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
sed -e "s@/bin/mv@$(type -P mv)@" -i replace.h
|
||||
'';
|
||||
|
||||
preInstall = "mkdir -p \$out/share/man";
|
||||
postInstall = "mv \$out/bin/replace \$out/bin/replace-literal";
|
||||
|
||||
patches = [./malloc.patch];
|
||||
|
||||
meta = {
|
||||
description = "A tool to replace verbatim strings";
|
||||
homepage = "https://replace.richardlloyd.org.uk/";
|
||||
mainProgram = "replace-literal";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue