2019-08-20 11:30:43 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchzip
|
|
|
|
, alsaLib
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, libGLU_combined
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kodelife";
|
2019-10-07 12:53:39 +01:00
|
|
|
version = "0.8.5.99";
|
2019-08-20 11:30:43 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
|
2019-10-07 12:53:39 +01:00
|
|
|
sha256 = "189i2j6kaygjb5pccynxv4pwqpy67jf9nfi7fjfhbrmjpqnmkp90";
|
2019-08-20 11:30:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
dontStrip = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv KodeLife $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = let
|
|
|
|
libPath = stdenv.lib.makeLibraryPath [
|
|
|
|
stdenv.cc.cc.lib
|
|
|
|
alsaLib
|
|
|
|
glib
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
libGLU_combined
|
|
|
|
xorg.libX11
|
|
|
|
];
|
|
|
|
in ''
|
|
|
|
patchelf \
|
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
|
|
--set-rpath "${libPath}" \
|
|
|
|
$out/bin/KodeLife
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://hexler.net/products/kodelife";
|
|
|
|
description = "Real-time GPU shader editor";
|
|
|
|
license = licenses.unfree;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|