diff options
author | Peter Simons <simons@cryp.to> | 2016-09-14 19:05:32 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2016-09-15 09:12:03 +0200 |
commit | 6607b9916837b81b1c874c79b25388f5412aa636 (patch) | |
tree | 83b1f1cdb68438207a1e281ef15ef156bfce0722 /pkgs/development/haskell-modules/configuration-common.nix | |
parent | 97fd9058235d9067b8760efec07643d06eada514 (diff) | |
download | nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar.gz nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar.bz2 nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar.lz nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar.xz nixlib-6607b9916837b81b1c874c79b25388f5412aa636.tar.zst nixlib-6607b9916837b81b1c874c79b25388f5412aa636.zip |
haskell: port existing hardening overrides to use the new combinator
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index fae838e3d2f0..b44519baa4e8 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -26,9 +26,7 @@ self: super: { c2hs = dontCheck super.c2hs; # fix errors caused by hardening flags - epanet-haskell = super.epanet-haskell.overrideDerivation (drv: { - hardeningDisable = [ "format" ]; - }); + epanet-haskell = disableHardening super.epanet-haskell ["format"]; # This test keeps being aborted because it runs too quietly for too long Lazy-Pbkdf2 = if pkgs.stdenv.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2; @@ -214,24 +212,10 @@ self: super: { jwt = dontCheck super.jwt; # https://github.com/NixOS/cabal2nix/issues/136 and https://github.com/NixOS/cabal2nix/issues/216 - gio = pkgs.lib.overrideDerivation (addPkgconfigDepend ( - addBuildTool super.gio self.gtk2hs-buildtools - ) pkgs.glib) (drv: { - hardeningDisable = [ "fortify" ]; - }); - glib = pkgs.lib.overrideDerivation (addPkgconfigDepend ( - addBuildTool super.glib self.gtk2hs-buildtools - ) pkgs.glib) (drv: { - hardeningDisable = [ "fortify" ]; - }); - gtk3 = pkgs.lib.overrideDerivation (super.gtk3.override { inherit (pkgs) gtk3; }) (drv: { - hardeningDisable = [ "fortify" ]; - }); - gtk = pkgs.lib.overrideDerivation (addPkgconfigDepend ( - addBuildTool super.gtk self.gtk2hs-buildtools - ) pkgs.gtk2) (drv: { - hardeningDisable = [ "fortify" ]; - }); + gio = disableHardening (addPkgconfigDepend (addBuildTool super.gio self.gtk2hs-buildtools) pkgs.glib) ["fortify"]; + glib = disableHardening (addPkgconfigDepend (addBuildTool super.glib self.gtk2hs-buildtools) pkgs.glib) ["fortify"]; + gtk3 = disableHardening (super.gtk3.override { inherit (pkgs) gtk3; }) ["fortify"]; + gtk = disableHardening (addPkgconfigDepend (addBuildTool super.gtk self.gtk2hs-buildtools) pkgs.gtk2) ["fortify"]; gtksourceview2 = (addPkgconfigDepend super.gtksourceview2 pkgs.gtk2).override { inherit (pkgs.gnome2) gtksourceview; }; gtksourceview3 = super.gtksourceview3.override { inherit (pkgs.gnome3) gtksourceview; }; @@ -411,9 +395,7 @@ self: super: { lensref = dontCheck super.lensref; liquidhaskell = dontCheck super.liquidhaskell; lucid = dontCheck super.lucid; #https://github.com/chrisdone/lucid/issues/25 - lvmrun = pkgs.lib.overrideDerivation (dontCheck super.lvmrun) (drv: { - hardeningDisable = [ "format" ]; - }); + lvmrun = disableHardening (dontCheck super.lvmrun) ["format"]; memcache = dontCheck super.memcache; milena = dontCheck super.milena; nats-queue = dontCheck super.nats-queue; @@ -951,9 +933,7 @@ self: super: { # Tools that use gtk2hs-buildtools now depend on them in a custom-setup stanza cairo = addBuildTool super.cairo self.gtk2hs-buildtools; - pango = (addBuildTool super.pango self.gtk2hs-buildtools).overrideDerivation (drv: { - hardeningDisable = [ "fortify" ]; - }); + pango = disableHardening (addBuildTool super.pango self.gtk2hs-buildtools) ["fortify"]; # Fix tests which would otherwise fail with "Couldn't launch intero process." intero = overrideCabal super.intero (drv: { |