Merge branch 'init-flake' into 'master'

Add flake.nix.

See merge request khumba/nvd!1
This commit is contained in:
Bryan Gardiner 2021-07-20 03:57:51 +00:00
commit fd059e5b2e

19
flake.nix Normal file
View 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 { };
}
));
}