gmic: 3.2.1 -> 3.2.2

Also perform drive-by change to fix repo owner, since the repository was
moved a while ago.
This commit is contained in:
Lily Foster 2023-03-17 14:44:50 -04:00 committed by Anderson Torres
parent cbb7ab9b79
commit 6d5359557f

View File

@ -1,7 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, fetchurl , fetchurl
, cmake , cmake
, ninja , ninja
@ -27,31 +26,23 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gmic"; pname = "gmic";
version = "3.2.1"; version = "3.2.2";
outputs = [ "out" "lib" "dev" "man" ]; outputs = [ "out" "lib" "dev" "man" ];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dtschump"; owner = "GreycLab";
repo = "gmic"; repo = "gmic";
rev = "v.${version}"; rev = "v.${version}";
hash = "sha256-oEH4GlSV+642TGSJJhV4yzydh1hAQZfzwaiPAZFNQtI="; hash = "sha256-XLDnIs7IRIhQtz+qgdNypJODk6WJRPQ2M6LU6DJ+T7I=";
}; };
patches = [
(fetchpatch {
name = "gmic-3.2.1-fix-system-gmic.patch";
url = "https://github.com/GreycLab/gmic/commit/9db3f6a39d9ed67b4279654da88993a8057575ff.patch";
hash = "sha256-JznKCs56t6cJ4HLqlhMZjSOupEB8cdkn3j6RgZpcpzo=";
})
];
# TODO: build this from source # TODO: build this from source
# https://github.com/dtschump/gmic/blob/b36b2428db5926af5eea5454f822f369c2d9907e/src/Makefile#L675-L729 # https://github.com/dtschump/gmic/blob/b36b2428db5926af5eea5454f822f369c2d9907e/src/Makefile#L675-L729
gmic_stdlib = fetchurl { gmic_stdlib = fetchurl {
name = "gmic_stdlib.h"; name = "gmic_stdlib.h";
url = "http://gmic.eu/gmic_stdlib${lib.replaceStrings ["."] [""] version}.h"; url = "http://gmic.eu/gmic_stdlib${lib.replaceStrings ["."] [""] version}.h";
hash = "sha256-f8d9jTVnHwSoyMuiM+Qv86e/BYX9SSx9cl3borihxnc="; hash = "sha256-lABUPhwlzoRODX7z8arOEU0JJszcXREhZ20WRToKNY4=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [