diff --git a/pkgs/applications/editors/pinegrow/default.nix b/pkgs/applications/editors/pinegrow/default.nix index e94fb02fcd99..7117e8f193c5 100644 --- a/pkgs/applications/editors/pinegrow/default.nix +++ b/pkgs/applications/editors/pinegrow/default.nix @@ -10,18 +10,36 @@ , gtk3 , wrapGAppsHook , makeWrapper +, pinegrowVersion ? "7" }: +let + # major version upgrade requires a new license. So keep version 6 around. + versions = { + "6" = { + version = "6.8"; + src = fetchurl { + url = "https://download.pinegrow.com/PinegrowLinux64.${versions."6".version}.zip"; + sha256 = "sha256-gqRmu0VR8Aj57UwYYLKICd4FnYZMhM6pTTSGIY5MLMk="; + }; + }; + "7" = { + version = "7.03"; + src = fetchurl { + url = "https://download.pinegrow.com/PinegrowLinux64.${versions."7".version}.zip"; + sha256 = "sha256-MdaJBmOPr1+J235IZPd3EBzbDTiORginyVKsjSkKbpE="; + }; + }; + }; +in + stdenv.mkDerivation rec { pname = "pinegrow"; # deactivate auto update, because an old 6.21 version is getting mixed up # see e.g. https://github.com/NixOS/nixpkgs/pull/184460 - version = "6.8"; # nixpkgs-update: no auto update + version = versions.${pinegrowVersion}.version; # nixpkgs-update: no auto update - src = fetchurl { - url = "https://download.pinegrow.com/PinegrowLinux64.${version}.zip"; - sha256 = "sha256-gqRmu0VR8Aj57UwYYLKICd4FnYZMhM6pTTSGIY5MLMk="; - }; + src = versions.${pinegrowVersion}.src; nativeBuildInputs = [ unzip diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a7f43fbae1f..73e08d8dfb70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30932,6 +30932,8 @@ with pkgs; pijuice = with python3Packages; toPythonApplication pijuice; + pinegrow6 = callPackage ../applications/editors/pinegrow { pinegrowVersion = "6"; }; + pinegrow = callPackage ../applications/editors/pinegrow { }; piper = callPackage ../os-specific/linux/piper { };