diff --git a/flake.lock b/flake.lock index a2fc179a..567877e2 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1628523294, - "narHash": "sha256-qMkH/JRRmcqb/eOa/pKksrKGOy2YEPQNH/457QyoyFg=", + "lastModified": 1637875414, + "narHash": "sha256-Ica++SXFuLyxX9Q7YxhfZulUif6/gwM8AEQYlUxqSgE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b09c989b82f7a4f7319802a1dcf8bfe859d65362", + "rev": "3bea86e918d8b54aa49780505d2d4cd9261413be", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 7ce22243..36c2d4c5 100644 --- a/flake.nix +++ b/flake.nix @@ -44,11 +44,16 @@ }; coverage = - pkgs.releaseTools.coverageAnalysis { + (pkgs.releaseTools.coverageAnalysis { name = "patchelf-coverage"; src = self.hydraJobs.tarball; lcovFilter = ["*/tests/*"]; - }; + }).overrideAttrs (old: { + preCheck = '' + # coverage cflag breaks this target + NIX_CFLAGS_COMPILE=''${NIX_CFLAGS_COMPILE//--coverage} make -C tests phdr-corruption.so + ''; + }); build = forAllSystems (system: nixpkgsFor.${system}.patchelf-new); build-sanitized = forAllSystems (system: nixpkgsFor.${system}.patchelf-new.overrideAttrs (old: { @@ -57,8 +62,9 @@ # our cc wrapper arguments CFLAGS = "-Werror -Wno-unused-command-line-argument"; })); - build-sanitized-clang = forAllSystems (system: self.hydraJobs.build-sanitized.${system}.override { - stdenv = pkgs.libcxxStdenv; + # 32-bit clangStdenv seems broken in nixpkgs + build-sanitized-clang = nixpkgs.lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] (system: self.hydraJobs.build-sanitized.${system}.override { + stdenv = nixpkgsFor.${system}.libcxxStdenv; }); release = pkgs.releaseTools.aggregate @@ -70,7 +76,6 @@ self.hydraJobs.build-sanitized.x86_64-linux self.hydraJobs.build-sanitized.i686-linux self.hydraJobs.build-sanitized-clang.x86_64-linux - self.hydraJobs.build-sanitized-clang.i686-linux ]; meta.description = "Release-critical builds"; };