mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchzip
|
|
, alsaLib
|
|
, glib
|
|
, gst_all_1
|
|
, libGLU, libGL
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kodelife";
|
|
version = "0.8.7.105";
|
|
|
|
src = fetchzip {
|
|
url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
|
|
sha256 = "0ld4lwigzwlikx04qy3gskqqg0wzlk8m3ccrd704ifl8lsp46n5r";
|
|
};
|
|
|
|
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 libGL
|
|
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" ];
|
|
};
|
|
}
|