Commit 0940ab12 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

kanif: fix build

parent 5c2eeaaf
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -15,11 +15,18 @@ stdenv.mkDerivation rec {
    sha256 = "3f0c549428dfe88457c1db293cfac2a22b203f872904c3abf372651ac12e5879";
  };

  nativeBuildInputs = [
    perl
    taktuk
  ];

  preBuild = ''
    substituteInPlace ./kanif --replace "/usr/bin/perl" "${perl}/bin/perl"
    substituteInPlace ./kanif --replace '$taktuk_command = "taktuk";' '$taktuk_command = "${taktuk}/bin/taktuk";'
    substituteInPlace ./kanif --replace-fail "/usr/bin/perl" "${perl}/bin/perl"
    substituteInPlace ./kanif --replace-fail '$taktuk_command = "taktuk";' '$taktuk_command = "${taktuk}/bin/taktuk";'
  '';

  strictDeps = true;

  meta = {
    description = "Cluster management and administration swiss army knife";
    longDescription = ''