git.iko.soy/typeable/nixpkgs
on master help sign in
Add hardening, bump hash to HaLVM
commit6f69681dad1c937614dbbb767f95480ea630d781 authorDavid Johnson <djohnson.m@gmail.com> dateThu 13 Apr 2017, 23:21 (10 years ago) parente94437d
2 files changed+6−6
pkgs/development/compilers/halvm/2.4.0.nix+4−4 pkgs/development/haskell-modules/generic-builder.nix+2−2
pkgs/development/compilers/halvm/2.4.0.nix+4−4
@@ -8,13 +8,13 @@ stdenv.mkDerivation rec {
88 isHaLVM = true;
99 isGhcjs = false;
1010 src = fetchgit {
11− rev = "6aa72c9b047fd8ddff857c994a5a895461fc3925";
11+ rev = "65fad65966eb7e60f234453a35aeb564a09d2595";
1212 url = "https://github.com/GaloisInc/HaLVM";
13− sha256 = "05cg4w6fw5ajmpmh8g2msprnygmr4isb3pphqhlddfqwyvqhl167";
13+ sha256 = "09633h38w0z20cz0wcfp9z5kzv8v1zwcv0wqvgq3c8svqbrxp28k";
1414 };
1515 prePatch = ''
16− sed -i '312 d' Makefile
17− sed -i '316,446 d' Makefile # Removes RPM packaging
16+ sed -i '305 d' Makefile
17+ sed -i '309,439 d' Makefile # Removes RPM packaging
1818 sed -i '20 d' src/scripts/halvm-cabal.in
1919 sed -ie 's|ld |${binutils}/bin/ld |g' src/scripts/ldkernel.in
2020 '';
pkgs/development/haskell-modules/generic-builder.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, ghc, pkgconfig, glibcLocales, coreutils, gnugrep, gnused
2−, jailbreak-cabal, hscolour, cpphs, nodejs
2+, jailbreak-cabal, hscolour, cpphs, nodejs, lib
33}: let isCross = (ghc.cross or null) != null; in
44
55{ pname
@@ -53,7 +53,7 @@
5353, shellHook ? ""
5454, coreSetup ? false # Use only core packages to build Setup.hs.
5555, useCpphs ? false
56−, hardeningDisable ? []
56+, hardeningDisable ? lib.optional (ghc.isHaLVM or false) "all"
5757} @ args:
5858
5959assert editedCabalFile != null -> revision != null;