2021-12-06 16:07:01 +00:00
|
|
|
{ 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/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.unfree;
|
2022-04-27 09:35:20 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ wolfangaukang ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "pixeluvo";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|