From 435959ce6fd6588f7f7ecd5c2bf48773ae79aa96 Mon Sep 17 00:00:00 2001 From: kilianar Date: Wed, 29 Jun 2022 00:27:22 +0200 Subject: [PATCH] jpegoptim: 1.4.6 -> 1.4.7 Release 1.4.7 was so far only published on GitHub and not on the authors website. Therefore we switch to fetchFromGitHub for obtaining the source. The license changed from gpl2+ to gpl3+ with commit https://github.com/tjko/jpegoptim/commit/2c0f5f2c2cc3d061249bd6d3aff1c210133cdf69 --- pkgs/applications/graphics/jpegoptim/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/graphics/jpegoptim/default.nix b/pkgs/applications/graphics/jpegoptim/default.nix index 6095d81c528..95ea902b5e6 100644 --- a/pkgs/applications/graphics/jpegoptim/default.nix +++ b/pkgs/applications/graphics/jpegoptim/default.nix @@ -1,12 +1,14 @@ -{ lib, stdenv, fetchurl, libjpeg }: +{ lib, stdenv, fetchFromGitHub, libjpeg }: stdenv.mkDerivation rec { - version = "1.4.6"; + version = "1.4.7"; pname = "jpegoptim"; - src = fetchurl { - url = "https://www.kokkonen.net/tjko/src/${pname}-${version}.tar.gz"; - sha256 = "1dss7907fclfl8zsw0bl4qcw0hhz6fqgi3867w0jyfm3q9jfpcc8"; + src = fetchFromGitHub { + owner = "tjko"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-qae3OEG4CC/OGkmNdHrXFUv9CkoaB1ZJnFHX3RFoxhk="; }; # There are no checks, it seems. @@ -17,7 +19,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Optimize JPEG files"; homepage = "https://www.kokkonen.net/tjko/projects.html"; - license = licenses.gpl2; + license = licenses.gpl3Plus; maintainers = [ maintainers.aristid ]; platforms = platforms.all; };