nixos/packages/lmod.nix

15 lines
323 B
Nix
Raw Normal View History

2024-02-19 17:25:27 +08:00
{
stdenv, src,
tcl,
2024-10-14 12:23:17 +08:00
procps, bc, lua, pkg-config
2024-02-19 17:25:27 +08:00
}:
stdenv.mkDerivation
{
name = "lmod";
inherit src;
buildInputs = [ tcl ];
2024-10-14 12:23:17 +08:00
nativeBuildInputs = [ pkg-config procps bc (lua.withPackages (ps: with ps; [ luaposix ])) ];
2024-02-21 11:29:47 +08:00
configurePhase = ''./configure --prefix=$out/share'';
2024-02-19 17:25:27 +08:00
postUnpack = "patchShebangs .";
}