lutgen-studio: init at 0.3.0 (#425609)

authored by isabelroses.com and committed by

GitHub 2514ce54 00ba9467

+72
+72
pkgs/by-name/lu/lutgen-studio/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + makeWrapper, 6 + 7 + fontconfig, 8 + libGL, 9 + libxkbcommon, 10 + openssl, 11 + wayland, 12 + xorg, 13 + 14 + nix-update-script, 15 + }: 16 + 17 + rustPlatform.buildRustPackage rec { 18 + pname = "lutgen-studio"; 19 + version = "0.3.0"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "ozwaldorf"; 23 + repo = "lutgen-rs"; 24 + tag = "lutgen-studio-v${version}"; 25 + hash = "sha256-ENhaJTbaAv52YFNjce9Ln/LQvP/Nw2Tk5eMmr8mKwQ0="; 26 + }; 27 + 28 + cargoHash = "sha256-PEso+fTH1DndRUPULYIDMAqnrfz8W9iVVxZ7W2N/I5U="; 29 + 30 + cargoBuildFlags = [ 31 + "--bin" 32 + "lutgen-studio" 33 + ]; 34 + cargoTestFlags = [ 35 + "-p" 36 + "lutgen-studio" 37 + ]; 38 + 39 + nativeBuildInputs = [ makeWrapper ]; 40 + 41 + postInstall = 42 + let 43 + # Include dynamically loaded libraries 44 + LD_LIBRARY_PATH = lib.makeLibraryPath [ 45 + fontconfig 46 + libGL 47 + libxkbcommon 48 + openssl 49 + wayland 50 + xorg.libXcursor 51 + xorg.libXrandr 52 + xorg.libXi 53 + xorg.libX11 54 + ]; 55 + in 56 + '' 57 + wrapProgram "$out/bin/lutgen-studio" \ 58 + --set LD_LIBRARY_PATH "${LD_LIBRARY_PATH}" 59 + ''; 60 + 61 + passthru.updateScript = nix-update-script { 62 + extraArgs = [ "--version-regex=^lutgen-studio-v([0-9.]+)$" ]; 63 + }; 64 + 65 + meta = { 66 + description = "Official GUI for Lutgen, the best way to apply popular colorschemes to any image or wallpaper"; 67 + homepage = "https://github.com/ozwaldorf/lutgen-rs"; 68 + maintainers = with lib.maintainers; [ ozwaldorf ]; 69 + mainProgram = "lutgen-studio"; 70 + license = lib.licenses.mit; 71 + }; 72 + }