mirror of
https://gitlab.com/khumba/nvd.git
synced 2025-04-18 15:33:02 +02:00
Add flake.nix.
This commit is contained in:
parent
1e6e419be3
commit
d6cbc5b4ac
1 changed files with 19 additions and 0 deletions
19
flake.nix
Normal file
19
flake.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
description = "nvd";
|
||||||
|
inputs = {
|
||||||
|
flake-utils.url = github:numtide/flake-utils;
|
||||||
|
};
|
||||||
|
outputs = { self, flake-utils, nixpkgs, ... }: (flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
defaultApp = {
|
||||||
|
type = "app";
|
||||||
|
program = "${self.packages.${system}.nvd}/bin/nvd";
|
||||||
|
};
|
||||||
|
defaultPackage = self.packages.${system}.nvd;
|
||||||
|
packages.nvd = pkgs.callPackage ./default.nix { };
|
||||||
|
}
|
||||||
|
));
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue