Add custom flake

This commit is contained in:
GHOSCHT 2024-05-14 19:19:28 +02:00
parent 6720a0f44a
commit b4401dacda
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 41 additions and 0 deletions

24
flake.lock Normal file
View 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
View 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;
};
}