Skip to content

Commit 89448e9

Browse files
committedMay 13, 2020
jdupes: build with additional hardening
1 parent 683c682 commit 89448e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎pkgs/tools/misc/jdupes/default.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ stdenv.mkDerivation rec {
1515
extraPostFetch = "rm -r $out/testdir";
1616
};
1717

18+
dontConfigure = true;
19+
1820
makeFlags = [
1921
"PREFIX=${placeholder "out"}"
22+
"HARDEN=1"
2023
] ++ stdenv.lib.optionals stdenv.isLinux [
2124
"ENABLE_DEDUPE=1"
2225
"STATIC_DEDUPE_H=1"
@@ -27,7 +30,7 @@ stdenv.mkDerivation rec {
2730
doCheck = false; # broken Makefile, the above also removes tests
2831

2932
postInstall = ''
30-
install -Dm644 -t $out/share/doc/jdupes CHANGES LICENSE README.md
33+
install -Dm444 -t $out/share/doc/jdupes CHANGES LICENSE README.md
3134
'';
3235

3336
meta = with stdenv.lib; {
@@ -40,6 +43,5 @@ stdenv.mkDerivation rec {
4043
homepage = "https://github.com/jbruchon/jdupes";
4144
license = licenses.mit;
4245
maintainers = with maintainers; [ romildo ];
43-
platforms = platforms.all;
4446
};
4547
}

0 commit comments

Comments
 (0)
Please sign in to comment.