Hello, I am new in Nix and I have a little struggle in building my own package.
I am making a package of a software (Slurm) and it needs Munge during the installPhase.
Indeed, the repo of Slurm has a configure file which is used by nix-build and this configuration file needs Munge.
So I put Munge in the buildInputs has shown in the code below, but during the configure phase the script fails with an error “unable to locate Munge.” This error come from the configure script.
So it looks like that the configure file does not have access to Munge.
If you have an idea what is the problem, I will be very glad.
Thanks
# slurm/default.nix
{
stdenv,
fetchFromGitHub,
perl,
munge,
}:
stdenv.mkDerivation rec {
pname = "slurm-${version}";
version = "24.05";
src = fetchFromGitHub {
owner = "SchedMD";
repo = "slurm";
rev = "3499918bc530f6503fa295ebdab7e10b5934660d";
sha256 = "8eLjecDqPEqNSzg66ZQBLSeBOlqPJbfUOeO7Sc9wo78=";
};
buildInputs = [ perl munge ];
}
# default.nix
{ pkgs ? import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/24.05.tar.gz";
sha256 = "0d643wp3l77hv2pmg2fi7vyxn4rwy0iyr8djcw1h5x72315ck9ik";
}) {} }:
rec {
slurm = pkgs.callPackage ./slurm { };
}