diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-11-05 21:10:23 +0800 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2023-11-21 08:42:08 +0100 |
commit | e4d052fbcabaaab4c6836922b12f834e0a475b85 (patch) | |
tree | 68b7f7248126b44b20b39fc67ee20e9d6d127eb0 /pkgs/by-name | |
parent | 4062d9400cac2f80bc9f0ee92be979fbefef1037 (diff) |
glycin-loaders: 0.1.rc → 0.1.0
https://gitlab.gnome.org/sophie-h/glycin/-/compare/0.1.rc...0.1.0 The only change is "cargo: Update description". Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com> Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/gl/glycin-loaders/package.nix | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/pkgs/by-name/gl/glycin-loaders/package.nix b/pkgs/by-name/gl/glycin-loaders/package.nix index 4560f340fd614..a3e29f9f182ee 100644 --- a/pkgs/by-name/gl/glycin-loaders/package.nix +++ b/pkgs/by-name/gl/glycin-loaders/package.nix @@ -1,6 +1,6 @@ { stdenv , lib -, fetchurl +, fetchFromGitLab , substituteAll , bubblewrap , cargo @@ -8,21 +8,31 @@ , meson , ninja , pkg-config +, rustPlatform , rustc , gtk4 , cairo , libheif , libxml2 -, gnome +, nix-update-script }: stdenv.mkDerivation (finalAttrs: { pname = "glycin-loaders"; - version = "0.1.rc"; + version = "0.1.0"; - src = fetchurl { - url = "mirror://gnome/sources/glycin-loaders/${lib.versions.majorMinor finalAttrs.version}/glycin-loaders-${finalAttrs.version}.tar.xz"; - hash = "sha256-q0MMcOnFLhSjeGQnByuKrKC7IdMgYcE52dgldXmKHkI="; + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "sophie-h"; + repo = "glycin"; + rev = finalAttrs.version; + hash = "sha256-XT3i0GQsLC2sMLHpaEzbItauX/8327wdlVt0/WHkCeo="; + }; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src; + name = "glycin-loaders-${finalAttrs.version}"; + hash = "sha256-HRBR+FWI87FCtDlJ3VvwT/7QFG/L7PYliX7mBYPy3aM="; }; patches = [ @@ -39,6 +49,7 @@ stdenv.mkDerivation (finalAttrs: { meson ninja pkg-config + rustPlatform.cargoSetupHook rustc ]; @@ -50,9 +61,7 @@ stdenv.mkDerivation (finalAttrs: { ]; passthru = { - updateScript = gnome.updateScript { - packageName = "glycin-loaders"; - }; + updateScript = nix-update-script { }; glycinPathsPatch = substituteAll { src = ./fix-glycin-paths.patch; |