Commit graph

20 commits

Author SHA1 Message Date
ccicnce113424
f71b30bf0e use builtin fetchers to prevent importing from derivation 2025-07-02 14:08:32 -04:00
Gavin John
3fa176577b Revert "use builtin fetchers to prevent importing from derivation"
This reverts commit 124ffb8b10.
2025-07-01 15:59:23 -04:00
ccicnce113424
124ffb8b10 use builtin fetchers to prevent importing from derivation 2025-06-29 13:21:35 -04:00
binarycat
1a5cae1376 made it possible to use NUR with without overrides
this means you can use it directly from a channel or via a nix repl in
a local clone.
2024-12-06 05:52:41 +00:00
Gavin John
4021fa3c83 treewide: nixfmt 2024-11-22 19:10:50 +00:00
Erik Oosting
1daa124072 Fixed bug where some nur-combined packages couldn't build
I don't know why, but for some reason nix already parses the relative
file as a path while still concatenating it with strings. I made sure
that nix instead concatednates the strings with right-to-left
precedence, so that the "/" is included

see also https://logs.nix.samueldr.com/nixos/2020-10-21#4134149;
2020-10-21 17:40:01 +02:00
Jörg Thalheim
9e87e21189 add repoOverrides option 2019-01-22 12:14:08 +00:00
Jörg Thalheim
97ff96075b move repoSource to external file 2018-08-04 17:58:11 +01:00
Silvan Mosberger
0dffdf2263
Merge pull request #27 from Infinisil/modules
NixOS module support: Separate NUR nixpkgs from repos nixpkgs, avoid callPackages
2018-07-20 20:23:41 +02:00
Silvan Mosberger
ee65c7afd6
Separate NUR nixpkgs from repos nixpkgs, avoid callPackages
This is essential to get modules in NUR to work. By taking a separate
argument for NUR's nixpkgs (for fetchgit, fetchzip and lib), we don't
need to evaluate the nixpkgs used for repos.

This also implies that you won't be able to `callPackage` NUR anymore,
and instead you'll have to use `import (builtins.fetchGit ".../NUR") {
inherit pkgs; }` instead. Doing this also prevents the evaluation of
pkgs. In case of NixOS, this pkgs depends on your whole config, which is
the source of the recursion. Evaluating this at the last possible moment
is key.

This also means that you won't be able to take package arguments in a
repo definition, you instead get just `pkgs`, also to avoid evaluation
of it.

An error will be thrown when pkgs was required for evaluation but wasn't
passed to the NUR import

The old callPackage syntax will still be supported albeit with a warning

Also repos receive a lib argument,
Using this lib instead of pkgs.lib makes it possible to define library
functions that use other library functions without depending on pkgs ->
should prevent some infinite recursion cases for NixOS module usage.
2018-07-20 04:36:18 +02:00
tilpner
d307bacb48
Default attr.type to null 2018-07-19 11:47:12 +02:00
Jörg Thalheim
126df71d94 improve gitlab support 2018-07-16 11:06:08 -04:00
Jörg Thalheim
a73e3cd465 implement git submodules support 2018-07-01 21:47:03 +01:00
Jörg Thalheim
9a9ce070b4 allow to specify nix file that is sourced from repository 2018-07-01 12:03:01 +01:00
Jörg Thalheim
5bb26d12a9 default.nix: fix indentation 2018-06-29 17:35:13 +01:00
Jörg Thalheim
351bfefbc3 generate default.nix from lock file 2018-06-29 12:15:26 +01:00
zimbatm
f862362090 update.py: allow to build without argument
Generate the default.nix with a default pkgs argument so that it can be
used directly.
2018-06-18 11:41:13 +01:00
Jörg Thalheim
bbe70d3ba7 yet another repo update 2018-06-16 01:51:00 +01:00
Jörg Thalheim
b549e5a575 first update test 2018-06-15 21:26:57 +01:00
Jörg Thalheim
b56a29434f first commit 2018-06-15 21:23:28 +01:00