From 0940ab12aea663e63957a10bbc3dd3ade7b30bae Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 9 Mar 2025 03:37:45 +0100 Subject: [PATCH] kanif: fix build --- pkgs/by-name/ka/kanif/package.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ka/kanif/package.nix b/pkgs/by-name/ka/kanif/package.nix index 5a2658c6247b..7ac73915f335 100644 --- a/pkgs/by-name/ka/kanif/package.nix +++ b/pkgs/by-name/ka/kanif/package.nix @@ -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 = ''