2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, slurm } :
|
2021-07-25 21:53:02 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "slurm-spank-x11";
|
2017-12-17 08:25:31 +00:00
|
|
|
version = "0.2.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hautreux";
|
|
|
|
repo = "slurm-spank-x11";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
|
|
|
|
-g -o slurm-spank-x11 slurm-spank-x11.c
|
|
|
|
gcc -I${slurm.dev}/include -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" -shared -fPIC \
|
|
|
|
-g -o x11.so slurm-spank-x11-plug.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/lib
|
|
|
|
install -m 755 slurm-spank-x11 $out/bin
|
|
|
|
install -m 755 x11.so $out/lib
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/hautreux/slurm-spank-x11";
|
2017-12-17 08:25:31 +00:00
|
|
|
description = "Plugin for SLURM to allow for interactive X11 sessions";
|
|
|
|
platforms = platforms.linux;
|
2021-02-01 12:40:25 +00:00
|
|
|
license = licenses.gpl3Only;
|
2017-12-17 08:25:31 +00:00
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|