Initial commit
Some checks failed
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
Some checks failed
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
Build and populate cache / tests (<YOUR_CACHIX_NAME>, nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-25.05.tar.gz, <YOUR_REPO_NAME>) (push) Has been cancelled
This commit is contained in:
15
overlay.nix
Normal file
15
overlay.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
# You can use this file as a nixpkgs overlay. This is useful in the
|
||||
# case where you don't want to add the whole NUR namespace to your
|
||||
# configuration.
|
||||
|
||||
self: super:
|
||||
let
|
||||
isReserved = n: n == "lib" || n == "overlays" || n == "modules";
|
||||
nameValuePair = n: v: { name = n; value = v; };
|
||||
nurAttrs = import ./default.nix { pkgs = super; };
|
||||
|
||||
in
|
||||
builtins.listToAttrs
|
||||
(map (n: nameValuePair n nurAttrs.${n})
|
||||
(builtins.filter (n: !isReserved n)
|
||||
(builtins.attrNames nurAttrs)))
|
||||
Reference in New Issue
Block a user