nixpkgs/pkgs/by-name/ps/ps2eps/hardcode-deps.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

27 lines
769 B
Diff

diff --git i/src/perl/ps2eps w/src/perl/ps2eps
index 1122a81..31d6a9a 100755
--- i/src/perl/ps2eps
+++ w/src/perl/ps2eps
@@ -43,19 +43,13 @@ Getopt::Long::Configure("no_ignore_case");
$prgname= "ps2eps";
-if (! -d "/usr/bin")
-{ # we assume that we are running under native windows
- $ghostscriptname = "gswin32c";
- $NULLDEV = "nul";
-}
-else
{ # Unix or cygwin
- $ghostscriptname = "gs";
+ $ghostscriptname = "@gs@";
$NULLDEV = "/dev/null 2>&1";
}
$bboxver=`bbox >$NULLDEV -V`;
-$bboxname= ($?== -1) ? "" : "bbox";
+$bboxname= ($?== -1) ? "" : "@bbox@";
$version= '$Id: ps2eps,v 1.70 2018-01-09 18:00:00 bless Exp $'; #'
$insertPScode= 1; # Insert surrounding Postscript code
$infhandle = STDIN; # Standard input is the default input file