571c71e6f7
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.
29 lines
712 B
Nix
29 lines
712 B
Nix
{ lib, stdenv, fetchurl, fltk13, ghostscript }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "flpsed";
|
|
version = "0.7.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.flpsed.org/${pname}-${version}.tar.gz";
|
|
sha256 = "0vngqxanykicabhfdznisv82k5ypkxwg0s93ms9ribvhpm8vf2xp";
|
|
};
|
|
|
|
buildInputs = [ fltk13 ];
|
|
|
|
postPatch = ''
|
|
# replace the execvp call to ghostscript
|
|
sed -e '/exec_gs/ {n; s|"gs"|"${lib.getBin ghostscript}/bin/gs"|}' \
|
|
-i src/GsWidget.cxx
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "WYSIWYG PostScript annotator";
|
|
homepage = "https://flpsed.org/flpsed.html";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = [ ];
|
|
mainProgram = "flpsed";
|
|
};
|
|
}
|