add overklay
This commit is contained in:
parent
a3fb203fa7
commit
44eb1c3ffb
2 changed files with 16 additions and 19 deletions
17
default.nix
17
default.nix
|
|
@ -1,6 +1,15 @@
|
|||
let
|
||||
# Import sources
|
||||
sources = import ./nix/sources.nix;
|
||||
sources = imports ./nix/sources.nix;
|
||||
|
||||
# And return that specific nixpkgs
|
||||
in sources.nixpkgs
|
||||
hello = pkgs.writeShellScriptBin "hello" ''
|
||||
echo "Hello from the Nix channel overlay!"
|
||||
'';
|
||||
|
||||
pkgs = import sources.nixpkgs {
|
||||
overlays = [
|
||||
(self: super: {
|
||||
inherit hello;
|
||||
})
|
||||
];
|
||||
};
|
||||
in pkgs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue