Merge pull request #67067 from prusnak/kodelife

kodelife: init at 0.8.3.93
This commit is contained in:
Marek Mahut 2019-08-20 18:49:56 +02:00 committed by GitHub
commit 03d34165bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{ stdenv
, fetchzip
, alsaLib
, glib
, gst_all_1
, libGLU_combined
, xorg
}:
stdenv.mkDerivation rec {
pname = "kodelife";
version = "0.8.3.93";
src = fetchzip {
url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
sha256 = "1gidh0745g5mc8h5ypm2wamv1paymnrq3nh3yx1j70jwjg8v2v7g";
};
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" ];
};
}

View file

@ -24775,4 +24775,6 @@ in
runwayml = callPackage ../applications/graphics/runwayml {};
uhubctl = callPackage ../tools/misc/uhubctl {};
kodelife = callPackage ../applications/graphics/kodelife {};
}