about summary refs log tree commit diff
path: root/pkgs/servers/hylafaxplus
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2021-05-08 17:44:30 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2021-05-14 05:42:16 +0200
commit87f08e8899becad629369a43a4b216fb6e1df69f (patch)
treef3eacfaa247488035dfc4dda935a2e85e6707c1e /pkgs/servers/hylafaxplus
parent9e9da7c4cb7d59a6d3d0309b6f004f31dd12027b (diff)
hylafaxplus: switch to pname+version
To support efforts like
https://github.com/NixOS/nixpkgs/issues/103997
this splits `name` into `pname` and `version`.
Diffstat (limited to 'pkgs/servers/hylafaxplus')
-rw-r--r--pkgs/servers/hylafaxplus/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/servers/hylafaxplus/default.nix b/pkgs/servers/hylafaxplus/default.nix
index bb56e63c40e46..4ce0d63f6bed8 100644
--- a/pkgs/servers/hylafaxplus/default.nix
+++ b/pkgs/servers/hylafaxplus/default.nix
@@ -30,12 +30,12 @@
 
 let
 
-  name = "hylafaxplus-${version}";
+  pname = "hylafaxplus";
   version = "7.0.3";
   sha256 = "139iwcwrn9i5lragxi33ilzah72w59wg4midfjjgx5cly3ah0iy4";
 
   configSite = substituteAll {
-    name = "hylafaxplus-config.site";
+    name = "${pname}-config.site";
     src = ./config.site;
     config_maxgid = lib.optionalString (maxgid!=null) ''CONFIG_MAXGID=${builtins.toString maxgid}'';
     ghostscript_version = ghostscript.version;
@@ -44,7 +44,7 @@ let
   };
 
   postPatch = substituteAll {
-    name = "hylafaxplus-post-patch.sh";
+    name = "${pname}-post-patch.sh";
     src = ./post-patch.sh;
     inherit configSite;
     maxuid = lib.optionalString (maxuid!=null) (builtins.toString maxuid);
@@ -55,7 +55,7 @@ let
   };
 
   postInstall = substituteAll {
-    name = "hylafaxplus-post-install.sh";
+    name = "${pname}-post-install.sh";
     src = ./post-install.sh;
     inherit fakeroot libfaketime;
   };
@@ -63,7 +63,7 @@ let
 in
 
 stdenv.mkDerivation {
-  inherit name version;
+  inherit pname version;
   src = fetchurl {
     url = "mirror://sourceforge/hylafax/hylafax-${version}.tar.gz";
     inherit sha256;