mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 17:18:44 +08:00
15 lines
300 B
Nix
15 lines
300 B
Nix
{
|
|
stdenv, src,
|
|
tcl,
|
|
procps, bc, lua
|
|
}:
|
|
stdenv.mkDerivation
|
|
{
|
|
name = "lmod";
|
|
inherit src;
|
|
buildInputs = [ tcl ];
|
|
nativeBuildInputs = [ procps bc (lua.withPackages (ps: with ps; [ luaposix ])) ];
|
|
configurePhase = ''./configure --prefix=$out/share'';
|
|
postUnpack = "patchShebangs .";
|
|
}
|