1 { lib, stdenv, fetchFromGitHub, slurm } :
2 stdenv.mkDerivation rec {
3 pname = "slurm-spank-x11";
6 src = fetchFromGitHub {
8 repo = "slurm-spank-x11";
10 sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
13 patches = [ ./hostlist.patch ];
16 gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
17 -g -o slurm-spank-x11 slurm-spank-x11.c
18 gcc -I${lib.getDev slurm}/include -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" -shared -fPIC \
19 -g -o x11.so slurm-spank-x11-plug.c
23 mkdir -p $out/bin $out/lib
24 install -m 755 slurm-spank-x11 $out/bin
25 install -m 755 x11.so $out/lib
29 homepage = "https://github.com/hautreux/slurm-spank-x11";
30 description = "Plugin for SLURM to allow for interactive X11 sessions";
31 mainProgram = "slurm-spank-x11";
32 platforms = platforms.linux;
33 license = licenses.gpl3Only;
34 maintainers = with maintainers; [ markuskowa ];