nixpkgs/pkgs/applications/graphics/kodelife/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

2019-08-20 10:30:43 +00:00
{ stdenv
, fetchzip
, alsaLib
, glib
, gst_all_1
2019-11-10 16:44:34 +00:00
, libGLU, libGL
2019-08-20 10:30:43 +00:00
, xorg
}:
stdenv.mkDerivation rec {
pname = "kodelife";
2019-11-28 05:57:11 +00:00
version = "0.8.7.105";
2019-08-20 10:30:43 +00:00
src = fetchzip {
url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
2019-11-28 05:57:11 +00:00
sha256 = "0ld4lwigzwlikx04qy3gskqqg0wzlk8m3ccrd704ifl8lsp46n5r";
2019-08-20 10:30:43 +00: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
2019-11-10 16:44:34 +00:00
libGLU libGL
2019-08-20 10:30:43 +00:00
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" ];
};
}