You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. { stdenv
  2. , fetchzip
  3. , alsaLib
  4. , glib
  5. , gst_all_1
  6. , libGLU_combined
  7. , xorg
  8. }:
  9. stdenv.mkDerivation rec {
  10. pname = "kodelife";
  11. version = "0.8.5.99";
  12. src = fetchzip {
  13. url = "https://hexler.net/pub/${pname}/${pname}-${version}-linux-x86_64.zip";
  14. sha256 = "189i2j6kaygjb5pccynxv4pwqpy67jf9nfi7fjfhbrmjpqnmkp90";
  15. };
  16. dontConfigure = true;
  17. dontBuild = true;
  18. dontStrip = true;
  19. dontPatchELF = true;
  20. installPhase = ''
  21. mkdir -p $out/bin
  22. mv KodeLife $out/bin
  23. '';
  24. preFixup = let
  25. libPath = stdenv.lib.makeLibraryPath [
  26. stdenv.cc.cc.lib
  27. alsaLib
  28. glib
  29. gst_all_1.gstreamer
  30. gst_all_1.gst-plugins-base
  31. libGLU_combined
  32. xorg.libX11
  33. ];
  34. in ''
  35. patchelf \
  36. --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
  37. --set-rpath "${libPath}" \
  38. $out/bin/KodeLife
  39. '';
  40. meta = with stdenv.lib; {
  41. homepage = "https://hexler.net/products/kodelife";
  42. description = "Real-time GPU shader editor";
  43. license = licenses.unfree;
  44. maintainers = with maintainers; [ prusnak ];
  45. platforms = [ "x86_64-linux" ];
  46. };
  47. }