diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-09-23 17:34:38 +0800 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2023-11-21 08:42:21 +0100 |
commit | 30271ad0a0eb6ec2033207a4255c7a2e623b528a (patch) | |
tree | b4a66d6cafa76bc14e1652a5e4a448baf3fbe033 /pkgs/by-name/gl | |
parent | 23e483408fee00479496927fa4069879667a6ca0 (diff) |
glycin-loaders: 0.1.0 → 0.1.1
https://gitlab.gnome.org/sophie-h/glycin/-/compare/0.1.0...0.1.1 This fixes the release tarball missing vendored cargo deps. Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com> Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
Diffstat (limited to 'pkgs/by-name/gl')
-rw-r--r-- | pkgs/by-name/gl/glycin-loaders/package.nix | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/pkgs/by-name/gl/glycin-loaders/package.nix b/pkgs/by-name/gl/glycin-loaders/package.nix index a3e29f9f182ee..8d53757e3c792 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 -, fetchFromGitLab +, fetchurl , substituteAll , bubblewrap , cargo @@ -8,31 +8,21 @@ , meson , ninja , pkg-config -, rustPlatform , rustc , gtk4 , cairo , libheif , libxml2 -, nix-update-script +, gnome }: stdenv.mkDerivation (finalAttrs: { pname = "glycin-loaders"; - version = "0.1.0"; + version = "0.1.1"; - 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="; + src = fetchurl { + url = "mirror://gnome/sources/glycin-loaders/${lib.versions.majorMinor finalAttrs.version}/glycin-loaders-${finalAttrs.version}.tar.xz"; + hash = "sha256-J8yzAsVymOKlXu78a8vMpodj+HtIBOy40KfkXHLfuVU="; }; patches = [ @@ -49,7 +39,6 @@ stdenv.mkDerivation (finalAttrs: { meson ninja pkg-config - rustPlatform.cargoSetupHook rustc ]; @@ -61,7 +50,9 @@ stdenv.mkDerivation (finalAttrs: { ]; passthru = { - updateScript = nix-update-script { }; + updateScript = gnome.updateScript { + packageName = "glycin-loaders"; + }; glycinPathsPatch = substituteAll { src = ./fix-glycin-paths.patch; |