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
|
let
|
||||||
# Import sources
|
sources = imports ./nix/sources.nix;
|
||||||
sources = import ./nix/sources.nix;
|
|
||||||
|
|
||||||
# And return that specific nixpkgs
|
hello = pkgs.writeShellScriptBin "hello" ''
|
||||||
in sources.nixpkgs
|
echo "Hello from the Nix channel overlay!"
|
||||||
|
'';
|
||||||
|
|
||||||
|
pkgs = import sources.nixpkgs {
|
||||||
|
overlays = [
|
||||||
|
(self: super: {
|
||||||
|
inherit hello;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
in pkgs
|
||||||
|
|
|
||||||
|
|
@ -5,22 +5,10 @@
|
||||||
"homepage": null,
|
"homepage": null,
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6c43a3495a11e261e5f41e5d7eda2d71dae1b2fe",
|
"rev": "2795c506fe8fb7b03c36ccb51f75b6df0ab2553f",
|
||||||
"sha256": "16f329z831bq7l3wn1dfvbkh95l2gcggdwn6rk3cisdmv2aa3189",
|
"sha256": "0m6prywp2axikm2sld8x6g362lzy2y8nf51w106j2riaklg6mfav",
|
||||||
"type": "tarball",
|
"type": "tarball",
|
||||||
"url": "https://github.com/NixOS/nixpkgs/archive/6c43a3495a11e261e5f41e5d7eda2d71dae1b2fe.tar.gz",
|
"url": "https://github.com/NixOS/nixpkgs/archive/2795c506fe8fb7b03c36ccb51f75b6df0ab2553f.tar.gz",
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
|
||||||
},
|
|
||||||
"xbuild": {
|
|
||||||
"branch": "master",
|
|
||||||
"description": "xbuild for all in one appimage integrated with tools for build environment",
|
|
||||||
"homepage": null,
|
|
||||||
"owner": "shen390s",
|
|
||||||
"repo": "xbuild",
|
|
||||||
"rev": "ca08d8d69df0881b944526d295c64bcf23951dd3",
|
|
||||||
"sha256": "1m5f6qa6z2r5yj83vwcciwm135gz9dngp2acad4j563qf9vii0l1",
|
|
||||||
"type": "tarball",
|
|
||||||
"url": "https://github.com/shen390s/xbuild/archive/ca08d8d69df0881b944526d295c64bcf23951dd3.tar.gz",
|
|
||||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue