nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 69e5fde2c32fd10f88fb50c86f09bef486e95c18
parent 8c3a587f55cc13b4b72e6a5d3928029c7f7b976b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 29 Oct 2020 02:39:45 +0300

Fix hardening

Diffstat:
Mpkgs/tools/dict/stardict-tools/default.nix | 7+++----
Mpkgs/tools/geo/ocad2mp/default.nix | 3++-
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pkgs/tools/dict/stardict-tools/default.nix b/pkgs/tools/dict/stardict-tools/default.nix @@ -31,10 +31,9 @@ stdenv.mkDerivation { pcre ]; - NIX_CFLAGS_COMPILE = [ - "-std=c++03" - "-Wno-error=format-security" - ]; + NIX_CFLAGS_COMPILE = [ "-std=c++03" ]; + + hardeningDisable = [ "format" ]; postPatch = '' substituteInPlace tools/src/wikipediaImage.cpp \ diff --git a/pkgs/tools/geo/ocad2mp/default.nix b/pkgs/tools/geo/ocad2mp/default.nix @@ -20,7 +20,6 @@ stdenv.mkDerivation { NIX_CFLAGS_COMPILE = [ "-std=c++03" "-include stddef.h" - "-Wno-error=format-security" ]; makeFlags = [ @@ -29,6 +28,8 @@ stdenv.mkDerivation { "TARGET_ARCH_BITS=64" ]; + hardeningDisable = [ "format" ]; + installPhase = '' install -Dm755 Release/ocad2mp -t $out/bin install -Dm644 SYM.TXT $out/share/ocad2mp/sym.txt