about summary refs log tree commit diff
path: root/pkgs/tools/system/symlinks
diff options
context:
space:
mode:
authorCillian de Róiste <goibhniu@fsfe.org>2014-07-08 19:19:15 +0200
committerCillian de Róiste <goibhniu@fsfe.org>2014-07-08 19:19:43 +0200
commit26e36dcc807682845ce9b21469d9b3490f948631 (patch)
tree3994996af4743e8a50f16a36eac9697404aec43c /pkgs/tools/system/symlinks
parentc734ec6952dd3d04da91e4b683ae8d09104c83ca (diff)
Add Mark Lord's symlinks utility
Diffstat (limited to 'pkgs/tools/system/symlinks')
-rw-r--r--pkgs/tools/system/symlinks/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/system/symlinks/default.nix b/pkgs/tools/system/symlinks/default.nix
new file mode 100644
index 0000000000000..0c69bdd03c5d1
--- /dev/null
+++ b/pkgs/tools/system/symlinks/default.nix
@@ -0,0 +1,27 @@
+{ fetchurl, stdenv }:
+
+stdenv.mkDerivation rec {
+  name = "symlinks-${version}";
+  version = "1.4";
+
+  src = fetchurl {
+    url = "http://www.ibiblio.org/pub/Linux/utils/file/${name}.tar.gz";
+    sha256 = "1683psyi8jwq6anhnkwwyaf7pfksf19v04fignd6vi52s2fnifxh";
+  };
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mkdir -p $out/share/man
+    cp symlinks $out/bin/
+    cp symlinks.8 $out/share/man/
+  '';
+
+  # No license is mentioned in the code but
+  # http://www.ibiblio.org/pub/Linux/utils/file/symlinks.lsm
+  # and other package managers list it as
+  # "(c) Mark Lord, freely distributable"
+  meta = with stdenv.lib; {
+    description = "A symbolic link maintenance utility";
+    maintainers = [ maintainers.goibhniu ];
+  };
+}