summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2020-05-13 10:18:00 +0800
committerPeter Hoeg <peter@hoeg.com>2020-05-13 10:18:00 +0800
commit89448e98a0e99ec87964b62eb57393bce912ed5d (patch)
tree1543e03aed822d4a509b3d0948f8413fa51014c9
parentMerge pull request #87448 from romildo/upd.shades-of-gray-theme (diff)
downloadnixpkgs-origin/f/jdupes.tar.gz
jdupes: build with additional hardeningorigin/f/jdupes
-rw-r--r--pkgs/tools/misc/jdupes/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/misc/jdupes/default.nix b/pkgs/tools/misc/jdupes/default.nix
index 109a84de6310..2898cfb67982 100644
--- a/pkgs/tools/misc/jdupes/default.nix
+++ b/pkgs/tools/misc/jdupes/default.nix
@@ -15,8 +15,11 @@ stdenv.mkDerivation rec {
extraPostFetch = "rm -r $out/testdir";
};
+ dontConfigure = true;
+
makeFlags = [
"PREFIX=${placeholder "out"}"
+ "HARDEN=1"
] ++ stdenv.lib.optionals stdenv.isLinux [
"ENABLE_DEDUPE=1"
"STATIC_DEDUPE_H=1"
@@ -27,7 +30,7 @@ stdenv.mkDerivation rec {
doCheck = false; # broken Makefile, the above also removes tests
postInstall = ''
- install -Dm644 -t $out/share/doc/jdupes CHANGES LICENSE README.md
+ install -Dm444 -t $out/share/doc/jdupes CHANGES LICENSE README.md
'';
meta = with stdenv.lib; {
@@ -40,6 +43,5 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/jbruchon/jdupes";
license = licenses.mit;
maintainers = with maintainers; [ romildo ];
- platforms = platforms.all;
};
}