summary refs log tree commit diff
path: root/pkgs/development/perl-modules/strip-nondeterminism
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2019-10-21 19:59:52 +0000
committervolth <volth@volth.com>2019-10-22 07:07:18 +0000
commit396190acb1e22d1dc523d7367f0619c113d8d11c (patch)
treee7da678dc964db4d4c6c3d511713dbd05b9b782d /pkgs/development/perl-modules/strip-nondeterminism
parente1b6b9056d4001030b65ccea649b75b58c1e77d8 (diff)
downloadnixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar.gz
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar.bz2
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar.lz
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar.xz
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.tar.zst
nixpkgs-396190acb1e22d1dc523d7367f0619c113d8d11c.zip
perlPackages: move CPAN libs to perl-packages.nix and non-CPAN libs out of perl-packages.nix
Diffstat (limited to 'pkgs/development/perl-modules/strip-nondeterminism')
-rw-r--r--pkgs/development/perl-modules/strip-nondeterminism/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/strip-nondeterminism/default.nix b/pkgs/development/perl-modules/strip-nondeterminism/default.nix
new file mode 100644
index 00000000000..3e638bfb193
--- /dev/null
+++ b/pkgs/development/perl-modules/strip-nondeterminism/default.nix
@@ -0,0 +1,33 @@
+{ lib, file, fetchFromGitLab, buildPerlPackage, ArchiveZip, ArchiveCpio }:
+
+buildPerlPackage rec {
+  pname = "strip-nondeterminism";
+  version = "1.0.0";
+
+  outputs = [ "out" "dev" ]; # no "devdoc"
+
+  src = fetchFromGitLab {
+    owner = "reproducible-builds";
+    repo = "strip-nondeterminism";
+    domain = "salsa.debian.org";
+    rev = version;
+    sha256 = "1pwar1fyadqxmvb7x4zyw2iawbi5lsfjcg0ps9n9rdjb6an7vv64";
+  };
+
+  # stray test failure
+  doCheck = false;
+
+  buildInputs = [ ArchiveZip ArchiveCpio file ];
+
+  perlPostHook = ''
+    # we don’t need the debhelper script
+    rm $out/bin/dh_strip_nondeterminism
+    rm $out/share/man/man1/dh_strip_nondeterminism.1.gz
+  '';
+
+  meta = with lib; {
+    description = "A Perl module for stripping bits of non-deterministic information";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ pSub ];
+  };
+}