summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-05-23 23:38:35 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-05-25 15:48:25 -0500
commit02de1dc70722f5bbd969d1df12cf48703f4d307f (patch)
treef2acc9cf6a927227f86e9ae28da964434c85e01e /pkgs
parent02297beade7813c6a716e53a5f1373f1123d8753 (diff)
downloadnixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar.gz
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar.bz2
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar.lz
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar.xz
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.tar.zst
nixlib-02de1dc70722f5bbd969d1df12cf48703f4d307f.zip
unix-tools: add version
Uses the POSIX standard 1003.1-2008 as version number. It can be
accessed for free at http://pubs.opengroup.org/onlinepubs/9699919799/.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/top-level/unix-tools.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/top-level/unix-tools.nix b/pkgs/top-level/unix-tools.nix
index 36fba3fbd479..f49e89d30914 100644
--- a/pkgs/top-level/unix-tools.nix
+++ b/pkgs/top-level/unix-tools.nix
@@ -11,9 +11,11 @@
 # input, not "procps" which requires Linux.
 
 let
+  version = "1003.1-2008";
+
   singleBinary = cmd: providers: let
       provider = "${lib.getBin providers.${hostPlatform.parsed.kernel.name}}/bin/${cmd}";
-    in runCommand cmd {
+    in runCommand "${cmd}-${version}" {
       meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers);
     } ''
       mkdir -p $out/bin
@@ -28,7 +30,7 @@ let
 
   # more is unavailable in darwin
   # just use less
-  more_compat = runCommand "more" {} ''
+  more_compat = runCommand "more-${version}" {} ''
     mkdir -p $out/bin
     ln -s ${pkgs.less}/bin/less $out/bin/more
   '';
@@ -131,7 +133,7 @@ let
   };
 
   makeCompat = name': value: buildEnv {
-    name = name' + "-compat";
+    name = name' + "-compat-${version}";
     paths = value;
   };