mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
0fcffecf8b
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/kodelife/versions
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchzip
|
|
, alsaLib
|
|
, glib
|
|
, gst_all_1
|
|
, libGLU_combined
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kodelife";
|
|
version = "0.8.6.101";
|
|
|
|
src = fetchzip {
|
|
url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
|
|
sha256 = "1ldab1famdcby2djfys657g85d46s8k96m6mr71riw4v336ar238";
|
|
};
|
|
|
|
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" ];
|
|
};
|
|
}
|