libipuz: 0.4.5 -> 0.5.2

Requires upgrading libipuz 0.4.5 → 0.5.2.

Also:

- fix libipuz license
- enable auto-update
- add myself as maintainer

Co-authored-by: Victor Engmark <victor@engmark.name>

authored by Victor Engmark Victor Engmark and committed by aleksana f7e486a6 104581ff

+39 -12
+39 -12
pkgs/by-name/li/libipuz/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 + cargo, 4 5 fetchFromGitLab, 6 + gi-docgen, 7 + glib, 8 + gobject-introspection, 9 + json-glib, 5 10 meson, 6 11 ninja, 12 + nix-update-script, 7 13 pkg-config, 8 - glib, 9 - json-glib, 14 + rustPlatform, 10 15 }: 11 - 12 - stdenv.mkDerivation rec { 16 + stdenv.mkDerivation (finalAttrs: { 13 17 pname = "libipuz"; 14 - version = "0.4.5"; 18 + version = "0.5.2"; 15 19 16 20 src = fetchFromGitLab { 17 21 domain = "gitlab.gnome.org"; 18 22 owner = "jrb"; 19 23 repo = "libipuz"; 20 - rev = version; 21 - hash = "sha256-psC2cFqSTlToCtCxwosXyJbmX/96AEI0xqzXtlc/HQE="; 24 + rev = finalAttrs.version; 25 + hash = "sha256-8bFMtqRD90SF9uT39Wkjf0eUef+0HgyrqY+DFA/xutI="; 26 + }; 27 + 28 + cargoRoot = "libipuz/rust"; 29 + cargoDeps = rustPlatform.fetchCargoVendor { 30 + inherit (finalAttrs) 31 + pname 32 + src 33 + version 34 + cargoRoot 35 + ; 36 + hash = "sha256-Aw/caE5Z5JxoKLEr2Dr2wq6cyFleNNwtKM1yXM8ZWmU="; 22 37 }; 23 38 24 39 nativeBuildInputs = [ 40 + cargo 41 + gi-docgen 42 + glib 43 + gobject-introspection 25 44 meson 26 45 ninja 27 46 pkg-config 28 - glib 47 + rustPlatform.cargoSetupHook 29 48 ]; 30 49 31 50 buildInputs = [ ··· 33 52 json-glib 34 53 ]; 35 54 55 + passthru.updateScript = nix-update-script { }; 56 + 36 57 meta = { 37 58 description = "Library for parsing .ipuz puzzle files"; 38 59 homepage = "https://gitlab.gnome.org/jrb/libipuz"; 39 - changelog = "https://gitlab.gnome.org/jrb/libipuz/-/blob/${version}/NEWS.md?ref_type=tags"; 40 - license = lib.licenses.lgpl21Plus; 41 - maintainers = with lib.maintainers; [ aleksana ]; 60 + changelog = "https://gitlab.gnome.org/jrb/libipuz/-/blob/${finalAttrs.version}/NEWS.md?ref_type=tags"; 61 + license = with lib.licenses; [ 62 + lgpl21Plus 63 + mit 64 + ]; 65 + maintainers = with lib.maintainers; [ 66 + aleksana 67 + l0b0 68 + ]; 42 69 platforms = lib.platforms.unix; 43 70 }; 44 - } 71 + })