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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-08-20 10:30:43 +00:00
, fetchzip
, alsa-lib
2019-08-20 10:30:43 +00:00
, 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";
2021-04-27 17:35:10 +00:00
version = "0.9.8.143";
suffix = {
aarch64-linux = "linux-arm64";
armv7l-linux = "linux-armhf";
x86_64-linux = "linux-x86_64";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2019-08-20 10:30:43 +00:00
src = fetchzip {
url = "https://hexler.net/pub/${pname}/${pname}-${version}-${suffix}.zip";
sha256 = {
2021-04-27 17:35:10 +00:00
aarch64-linux = "0ryjmpzpfqdqrvqpq851vvrjd8ld5g91gcigpv9rxp3z1b7qdand";
armv7l-linux = "08nlwn8ixndqil4m7j6c8gjxmwx8zi3in86arnwf13shk6cds5nb";
x86_64-linux = "0kbz7pvh4i4a3pj1vzbzzslha825i888isvsigcqsqvipjr4798q";
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2019-08-20 10:30:43 +00:00
};
dontConfigure = true;
dontBuild = true;
dontStrip = true;
dontPatchELF = true;
2020-04-13 17:12:26 +00:00
preferLocalBuild = true;
2019-08-20 10:30:43 +00:00
installPhase = ''
2021-04-27 17:35:10 +00:00
runHook preInstall
2019-08-20 10:30:43 +00:00
mkdir -p $out/bin
mv KodeLife $out/bin
2021-04-27 17:35:10 +00:00
runHook postInstall
2019-08-20 10:30:43 +00:00
'';
preFixup = let
2021-01-15 13:21:58 +00:00
libPath = lib.makeLibraryPath [
2019-08-20 10:30:43 +00:00
stdenv.cc.cc.lib
alsa-lib
2019-08-20 10:30:43 +00:00
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
];
2021-04-27 17:35:10 +00:00
in ''
2019-08-20 10:30:43 +00:00
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/bin/KodeLife
'';
meta = with lib; {
2019-08-20 10:30:43 +00:00
homepage = "https://hexler.net/products/kodelife";
description = "Real-time GPU shader editor";
license = licenses.unfree;
maintainers = with maintainers; [ prusnak ];
2021-04-27 17:35:10 +00:00
platforms = [ "aarch64-linux" "armv7l-linux" "x86_64-linux" ];
2019-08-20 10:30:43 +00:00
};
}