]> sourceware.org Git - lvm2.git/commitdiff
NIX: We need to install lcov for ./configure now as well.
authorPetr Rockai <prockai@redhat.com>
Thu, 5 Feb 2015 12:30:02 +0000 (13:30 +0100)
committerPetr Rockai <prockai@redhat.com>
Thu, 5 Feb 2015 12:51:38 +0000 (13:51 +0100)
nix/default.nix

index b72379e730ff0584fb6b4a5564483dab6331c074..6bb94dbb7483882f4e15649732a4707aff5f3d84 100644 (file)
@@ -11,6 +11,11 @@ let
   pkgs = import nixpkgs {};
   lib = pkgs.lib;
   over = overrides { inherit pkgs; };
+  install_lcov = ''
+     rpm -Uv ${pkgs.fetchurl {
+        url = "http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/16/i386/lcov-1.9-2.fc16.noarch.rpm";
+        sha256 = "0ycdh5mb7p5ll76mqk0p6gpnjskvxxgh3a3bfr1crh94nvpwhp4z"; }}
+  '';
 
   mkTest = args: pkgs.stdenv.mkDerivation rec {
      name = "lvm2-test-${(args.diskFun {}).name}";
@@ -42,9 +47,7 @@ let
 
          # we always run in a fresh image, so need to install everything again
          ls ${build}/rpms/*/*.rpm | grep -v sysvinit | xargs rpm -Uv --oldpackage # */
-         rpm -Uv ${pkgs.fetchurl {
-            url = "http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/16/i386/lcov-1.9-2.fc16.noarch.rpm";
-            sha256 = "0ycdh5mb7p5ll76mqk0p6gpnjskvxxgh3a3bfr1crh94nvpwhp4z"; }}
+         ${install_lcov}
 
          mkdir -p /xchg/results
          touch /xchg/booted
@@ -168,6 +171,8 @@ let
      memSize = 512;
      checkPhase = ":";
 
+     preConfigure = install_lcov;
+
      postInstall = ''
       mkdir -p $out/nix-support
       for i in $out/rpms/*/*.rpm; do # */
This page took 0.039329 seconds and 5 git commands to generate.