Eman Resu
dded3e398f
build-support/hg: remove throwIf usage
2026-05-26 14:22:46 -04:00
Ben Siraphob
010527b7d5
pkgs/build-support: fix typos
2025-09-09 13:15:19 +07:00
Yueh-Shun Li
49ec48c3db
fetchhg: fix hash assertion; make overridable when sha256 set
...
Fix commit ef2f8315bf ("fetchhg: make argument hash overridable")
2025-07-10 04:24:07 +08:00
Yueh-Shun Li
34a5b1eb23
fetchhg: format with nixfmt-rfc-style
2025-07-09 04:08:00 +08:00
Yueh-Shun Li
ef2f8315bf
fetchhg: make argument hash overridable
2025-07-09 04:08:00 +08:00
Yueh-Shun Li
5e7cb7d976
fetchhg: use extendMkDerivation
2025-07-01 17:44:36 +08:00
Yueh-Shun Li
c6b8e4470c
fetchhg: allow hash to be empty string and move assertion down under outputHash
2025-07-01 11:53:59 +08:00
Peder Bergebakken Sundt
5aba99242e
treewide: fix typos in comments
...
Made with
```shell
git restore .
fd '\.nix$' pkgs/ --type f -j1 -x bash -xc "$(cat <<"EOF"
typos --no-check-filenames --write-changes "$1"
git diff --exit-code "$1" && exit
#( git diff "$1" | grep -qE "^\+ +[^# ]") && git restore "$1"
count1="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> ' | wc -l )"
count2="$( bat --language nix --diff --style changes "$1" --theme "Monokai Extended" --color always | aha --no-header | grep -E '^<span style="color:olive;">~</span> (<span style="color:#f8f8f2;"> *</span>)?<span style="color:#75715e;">.*</span>$' | wc -l )"
[[ $count1 -ne $count2 ]] && git restore "$1"
EOF
)" -- {}
```
and filtered with `GIT_DIFF_OPTS='--unified=15' git -c interactive.singleKey=true add --patch`
I initially tried using the tree-sitter cli, python bindings and even ast-grep through various means, but this is what I ended up with.
2025-02-24 10:44:41 +01:00
Silvan Mosberger
4f0dadbf38
treewide: format all inactive Nix files
...
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19 .tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Theodore Ni
4c9ed3189c
fetchhg: clean up md5 references
2023-07-20 21:24:13 -07:00
ajs124
b7cb74322c
fetchhg: allow specifying (sri) hash
2023-04-03 12:40:35 +02:00
Felix Buehler
cdb39a86e0
treewide: use optionalString
2023-02-13 21:52:34 +01:00
Ben Siraphob
02ee14b9d5
treewide: stdenvNoCC.lib -> lib
2021-01-27 13:01:51 +07:00
Jörg Thalheim
eac6797380
prefer-fetch-remote: an overlay to fetch on remote builders
...
This is useful when running tools like NixOps or nix-review
on workstations where the upload to the builder is significantly
slower then downloading the source on the builder itself.
2019-01-18 14:41:10 +00:00
volth
52f53c69ce
pkgs/*: remove unreferenced function arguments
2018-07-21 02:48:04 +00:00
John Ericson
940c4fa3f5
treewide: Fetchers should use stdenvNoCC.
2018-01-10 11:18:44 -05:00
John Ericson
3d59b4d285
treewide: Fixed output fetch* derivations should use nativeBuildInputs
2018-01-09 20:14:46 -05:00
Robin Gloster
f57185db95
fetch-*: remove md5 support
...
fixes #4491
2017-03-20 22:23:41 +01:00
Eelco Dolstra
e3a873479e
Remove fetchMD5warn
...
Deprecation warnings should not be used in Nixpkgs because they spam
innocent "nix-env -qa" users with (in this case) dozens of messages
that they can't do anything about.
This also reverts commit 2ca8833383 .
2016-11-30 15:14:30 +01:00
Michael Raskin
f603dc11a6
fetch*: print a trace warning about md5 deprecation
2016-10-09 16:19:04 +02:00
Profpatsch
61462c94e6
lib/fetchers.nix: factor out impure proxy vars ( #18702 )
...
Apparently everyone just copied those variables, instead of creating a
library constant for them. Some even removed the comment. -.-
2016-09-17 21:50:01 +02:00
Edward Tjörnhammar
655eed7a93
Merge pull request #7235 from risicle/fetchhgsubrepo
...
fetchhg: add option to fetch hg subrepos
2015-05-04 18:20:32 +02:00
Robert Scott
366da9e70f
fetchhg: add option to fetch hg subrepos
2015-05-04 16:18:26 +01:00
Edward Tjörnhammar
4256ab778a
fetchhg: pass proxyvars to hg
2015-04-28 22:44:57 +02:00
Benno Fünfstück
e10001042d
fetchbzr, fetchdarcs, fetchhg: use rev attr
...
This makes it match the behaviour of fetchgit and fetchsvn, so it's
easier to write scripts that support all of them.
2014-06-28 21:06:10 +02:00
Eelco Dolstra
84779a6f7d
Remove unnecessary parentheses around if conditions
...
Pet peeve...
2012-12-28 19:54:15 +01:00
Lluis Batlle
ba47bf7258
fetchhg: removing the nix dependency
...
I don't think it's required for anything. I tried once without it, and it
worked equally fine.
2012-08-26 23:16:28 +02:00
Rob Vermaas
080c0b2f38
prefer local builds for fetchhg
...
svn path=/nixpkgs/trunk/; revision=31462
2012-01-10 06:41:44 +00:00
Rob Vermaas
3756e6021a
use same name as nix-prefetch-hg for derivation
...
svn path=/nixpkgs/trunk/; revision=26778
2011-04-11 12:20:59 +00:00
Lluís Batlle i Rossell
0530f43655
Updating go, and making the go expression work in both i686-linux and x86_64-linux.
...
svn path=/nixpkgs/trunk/; revision=22230
2010-06-12 11:21:20 +00:00
Nicolas Pierron
c8cb5210fb
* Add a fetchhg builder to checkout mercurial repositories.
...
svn path=/nixpkgs/trunk/; revision=18347
2009-11-14 20:14:21 +00:00
Marc Weber
04bd6b0607
commented out avrdude which is using unstable lib functions,
...
missing fetchhg expression added
svn path=/nixpkgs/trunk/; revision=9249
2007-09-04 12:45:00 +00:00