Add custom flake
This commit is contained in:
parent
6720a0f44a
commit
b4401dacda
2 changed files with 41 additions and 0 deletions
24
flake.lock
Normal file
24
flake.lock
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1714409183,
|
||||
"narHash": "sha256-Wacm/DrzLD7mjFGnSxxyGkJgg2unU/dNdNgdngBH+RU=",
|
||||
"path": "/nix/store/xpzmrd7qla29lv913dgg0rma1g335zam-source",
|
||||
"rev": "576ecd43d3b864966b4423a853412d6177775e8b",
|
||||
"type": "path"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
17
flake.nix
Normal file
17
flake.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in {
|
||||
packages.x86_64-linux.tree = nixpkgs.legacyPackages.x86_64-linux.tree;
|
||||
|
||||
defaultPackage.x86_64-linux = self.packages.x86_64-linux.tree;
|
||||
|
||||
hydraJobs."tester2" = self.defaultPackage;
|
||||
hydraJobs."tester" = pkgs.neo-cowsay;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue