summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/dtc
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-06-15 12:25:58 +0000
committerAlyssa Ross <hi@alyssa.is>2023-12-05 21:19:01 +0100
commitfb4a93a913e9bf7f46b73aacd8a4986354170c7f (patch)
tree3287678f8c5416a5e08241be0e11e020ae9dae0d /pkgs/development/compilers/dtc
parent660b0bd012886485b593c33c3fe41ab46aae611d (diff)
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/development/compilers/dtc')
-rw-r--r--pkgs/development/compilers/dtc/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/compilers/dtc/default.nix b/pkgs/development/compilers/dtc/default.nix
index d9013895becc..adc3ed7aaac8 100644
--- a/pkgs/development/compilers/dtc/default.nix
+++ b/pkgs/development/compilers/dtc/default.nix
@@ -1,6 +1,6 @@
{ stdenv
, lib
-, fetchgit
+, fetchzip
, fetchpatch
, meson
, ninja
@@ -18,9 +18,8 @@ stdenv.mkDerivation (finalAttrs: {
pname = "dtc";
version = "1.7.0";
- src = fetchgit {
- url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git";
- rev = "refs/tags/v${finalAttrs.version}";
+ src = fetchzip {
+ url = "https://git.kernel.org/pub/scm/utils/dtc/dtc.git/snapshot/dtc-v${finalAttrs.version}.tar.gz";
sha256 = "sha256-FMh3VvlY3fUK8fbd0M+aCmlUrmG9YegiOOQ7MOByffc=";
};