about summary refs log tree commit diff
path: root/pkgs/data/misc
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-11 21:14:29 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-11 21:14:29 +0200
commit922a444b270800e3ea4eda0afc528b0fded02d5a (patch)
treeb6de3292cd47b1e46bdc4de42376c4ce3e0f6f6c /pkgs/data/misc
parentf8c8bb04a5a89a2c0221b7616fa5ff5392822f85 (diff)
parent2c31bc7f200b6a6db59787bd6ac6f9d48d69ed89 (diff)
Merge remote-tracking branch 'origin/master' into haskell-updates
Diffstat (limited to 'pkgs/data/misc')
-rw-r--r--pkgs/data/misc/common-licenses/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/data/misc/common-licenses/default.nix b/pkgs/data/misc/common-licenses/default.nix
new file mode 100644
index 0000000000000..a0c21b5d900b9
--- /dev/null
+++ b/pkgs/data/misc/common-licenses/default.nix
@@ -0,0 +1,28 @@
+{ stdenv
+, fetchurl
+, lib
+}:
+
+stdenv.mkDerivation rec {
+  pname = "common-licenses";
+  version = "11.1";
+
+  src = fetchurl {
+    url = "http://deb.debian.org/debian/pool/main/b/base-files/base-files_${version}.tar.xz";
+    sha256 = "1i3hgd9vs14k819k441iibcgmi2zavnpqbnppyn2cz70kd830nbm";
+  };
+
+  installPhase = ''
+    mkdir -p $out/share
+    cp -r licenses $out/share/common-licenses
+    cat debian/base-files.links | grep common-licenses | sed -e "s|usr|$out|g" -e "s|^|ln -s |g" | bash -x
+  '';
+
+  meta = with lib; {
+    description = "common-licenses extracted from debian base-files package";
+    homepage = "https://tracker.debian.org/pkg/base-files";
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.mkg20001 ];
+  };
+}