diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-06-15 12:25:58 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-05 21:19:01 +0100 |
commit | fb4a93a913e9bf7f46b73aacd8a4986354170c7f (patch) | |
tree | 3287678f8c5416a5e08241be0e11e020ae9dae0d /pkgs/tools/filesystems | |
parent | 660b0bd012886485b593c33c3fe41ab46aae611d (diff) | |
download | nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar.gz nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar.bz2 nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar.lz nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar.xz nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.tar.zst nixlib-fb4a93a913e9bf7f46b73aacd8a4986354170c7f.zip |
treewide: fetchgit -> fetchzip (git.kernel.org)
fetchzip is more efficient, because it doesn't do a full git clone, so it should be preferred where possible. Where hashes have not been changed, I have verified that they don't need to be. Where hashes have changed, in all cases this is because of .gitattributes files that exclude certain files from the tarball, and in these cases I have verified that the packages still build. sbsigntool still uses fetchgit because it has a submodule, and ell and iwd still use fetchgit because git.kernel.org does not provide snapshot links for them. Apparently this is intentional.
Diffstat (limited to 'pkgs/tools/filesystems')
-rw-r--r-- | pkgs/tools/filesystems/f2fs-tools/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/tools/filesystems/f2fs-tools/default.nix b/pkgs/tools/filesystems/f2fs-tools/default.nix index c2af09857728..811adfadb55b 100644 --- a/pkgs/tools/filesystems/f2fs-tools/default.nix +++ b/pkgs/tools/filesystems/f2fs-tools/default.nix @@ -1,12 +1,11 @@ -{ lib, stdenv, fetchgit, autoreconfHook, libselinux, libuuid, pkg-config }: +{ lib, stdenv, fetchzip, autoreconfHook, libselinux, libuuid, pkg-config }: stdenv.mkDerivation rec { pname = "f2fs-tools"; version = "1.16.0"; - src = fetchgit { - url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git"; - rev = "refs/tags/v${version}"; + src = fetchzip { + url = "https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/f2fs-tools-v${version}.tar.gz"; sha256 = "sha256-zNG1F//+BTBzlEc6qNVixyuCB6PMZD5Kf8pVK0ePYiA="; }; |