hylafaxplus: switch to pname+version
To support efforts like https://github.com/NixOS/nixpkgs/issues/103997 this splits `name` into `pname` and `version`.
This commit is contained in:
parent
9e9da7c4cb
commit
87f08e8899
@ -30,12 +30,12 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
name = "hylafaxplus-${version}";
|
pname = "hylafaxplus";
|
||||||
version = "7.0.3";
|
version = "7.0.3";
|
||||||
sha256 = "139iwcwrn9i5lragxi33ilzah72w59wg4midfjjgx5cly3ah0iy4";
|
sha256 = "139iwcwrn9i5lragxi33ilzah72w59wg4midfjjgx5cly3ah0iy4";
|
||||||
|
|
||||||
configSite = substituteAll {
|
configSite = substituteAll {
|
||||||
name = "hylafaxplus-config.site";
|
name = "${pname}-config.site";
|
||||||
src = ./config.site;
|
src = ./config.site;
|
||||||
config_maxgid = lib.optionalString (maxgid!=null) ''CONFIG_MAXGID=${builtins.toString maxgid}'';
|
config_maxgid = lib.optionalString (maxgid!=null) ''CONFIG_MAXGID=${builtins.toString maxgid}'';
|
||||||
ghostscript_version = ghostscript.version;
|
ghostscript_version = ghostscript.version;
|
||||||
@ -44,7 +44,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
postPatch = substituteAll {
|
postPatch = substituteAll {
|
||||||
name = "hylafaxplus-post-patch.sh";
|
name = "${pname}-post-patch.sh";
|
||||||
src = ./post-patch.sh;
|
src = ./post-patch.sh;
|
||||||
inherit configSite;
|
inherit configSite;
|
||||||
maxuid = lib.optionalString (maxuid!=null) (builtins.toString maxuid);
|
maxuid = lib.optionalString (maxuid!=null) (builtins.toString maxuid);
|
||||||
@ -55,7 +55,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
postInstall = substituteAll {
|
postInstall = substituteAll {
|
||||||
name = "hylafaxplus-post-install.sh";
|
name = "${pname}-post-install.sh";
|
||||||
src = ./post-install.sh;
|
src = ./post-install.sh;
|
||||||
inherit fakeroot libfaketime;
|
inherit fakeroot libfaketime;
|
||||||
};
|
};
|
||||||
@ -63,7 +63,7 @@ let
|
|||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
inherit name version;
|
inherit pname version;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/hylafax/hylafax-${version}.tar.gz";
|
url = "mirror://sourceforge/hylafax/hylafax-${version}.tar.gz";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user