From 1f84f953ecee944b9ceee0540a47df08ae8cb491 Mon Sep 17 00:00:00 2001 From: "P. R. d. O" Date: Thu, 11 Nov 2021 18:43:54 -0600 Subject: [PATCH] pixeluvo: init at 1.6.0-2 --- .../graphics/pixeluvo/default.nix | 55 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/applications/graphics/pixeluvo/default.nix diff --git a/pkgs/applications/graphics/pixeluvo/default.nix b/pkgs/applications/graphics/pixeluvo/default.nix new file mode 100644 index 000000000000..d88be4369844 --- /dev/null +++ b/pkgs/applications/graphics/pixeluvo/default.nix @@ -0,0 +1,55 @@ +{ lib, stdenv, fetchurl, dpkg, autoPatchelfHook, makeWrapper +, gtk3-x11 }: + +stdenv.mkDerivation rec { + pname = "pixeluvo"; + version = "1.6.0-2"; + + src = fetchurl { + url = "http://www.pixeluvo.com/downloads/${pname}_${version}_amd64.deb"; + sha256 = "sha256-QYSuD6o3kHg0DrFihYEcf9e3b8U1bu4Zf78+Akmm8yo="; + }; + + nativeBuildInputs = [ + dpkg + makeWrapper + autoPatchelfHook + ]; + + buildInputs = [ + gtk3-x11 + stdenv.cc.cc + ]; + + libPath = lib.makeLibraryPath buildInputs; + + dontBuild = true; + dontConfigure = true; + + unpackPhase = '' + dpkg-deb -x ${src} ./ + ''; + + installPhase = '' + runHook preInstall + + mv usr $out + mv opt $out + install -Dm644 $out/opt/pixeluvo/pixeluvo.png -t $out/share/pixmaps/ + + substituteInPlace $out/share/applications/pixeluvo.desktop \ + --replace '/opt/pixeluvo/pixeluvo.png' pixeluvo + + makeWrapper $out/opt/pixeluvo/bin/Pixeluvo64 $out/bin/pixeluvo \ + --prefix LD_LIBRARY_PATH : ${libPath} + + runHook postInstall + ''; + + meta = with lib; { + description = "A Beautifully Designed Image and Photo Editor for Windows and Linux"; + homepage = "http://www.pixeluvo.com/"; + license = licenses.unfree; + maintainers = with maintainers; [ wolfangaukang ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eb48b682875b..80dfc8b62392 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25655,6 +25655,8 @@ with pkgs; pixelnuke = callPackage ../applications/graphics/pixelnuke { }; + pixeluvo = callPackage ../applications/graphics/pixeluvo { }; + pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { }; shepherd = nodePackages."@nerdwallet/shepherd";