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
46
pkgs/applications/misc/gv/default.nix
Normal file
46
pkgs/applications/misc/gv/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchurl, Xaw3d, ghostscriptX, perl, pkg-config, libiconv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gv";
|
||||
version = "3.7.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/gv/gv-${version}.tar.gz";
|
||||
sha256 = "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1";
|
||||
};
|
||||
|
||||
configureFlags = lib.optionals stdenv.isDarwin [
|
||||
"--enable-SIGCHLD-fallback"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
Xaw3d
|
||||
ghostscriptX
|
||||
perl
|
||||
pkg-config
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
libiconv
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed 's|\<gs\>|${ghostscriptX}/bin/gs|g' -i "src/"*.in
|
||||
sed 's|"gs"|"${ghostscriptX}/bin/gs"|g' -i "src/"*.c
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.gnu.org/software/gv/";
|
||||
description = "PostScript/PDF document viewer";
|
||||
|
||||
longDescription = ''
|
||||
GNU gv allows users to view and navigate through PostScript and
|
||||
PDF documents on an X display by providing a graphical user
|
||||
interface for the Ghostscript interpreter.
|
||||
'';
|
||||
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue