Add flake.nix

This commit is contained in:
Félix Baylac Jacqué 2022-12-18 10:02:15 +01:00
parent 4cf347c5eb
commit aa3fb2e359
Signed by: picnoir
GPG Key ID: EFD315F31848DBA4
2 changed files with 40 additions and 0 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1671268780,
"narHash": "sha256-9Okbivo10bcXEGCtmAQNfJt1Zpk6B3tjkSQ2CIXmTCg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "80c24eeb9ff46aa99617844d0c4168659e35175f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

13
flake.nix Normal file
View File

@ -0,0 +1,13 @@
{
description = "A very basic flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }: {
packages.x86_64-linux.temp-prometheus = import ./. { pkgs = nixpkgs.legacyPackages.x86_64-linux; };
packages.x86_64-linux.default = self.packages.x86_64-linux.temp-prometheus;
};
}