Skip to content

Commit

Permalink
jdupes: build with additional hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed May 13, 2020
1 parent 683c682 commit 89448e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/misc/jdupes/default.nix
Expand Up @@ -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"
Expand All @@ -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; {
Expand All @@ -40,6 +43,5 @@ stdenv.mkDerivation rec {
homepage = "https://github.com/jbruchon/jdupes";
license = licenses.mit;
maintainers = with maintainers; [ romildo ];
platforms = platforms.all;
};
}

0 comments on commit 89448e9

Please sign in to comment.