From d6cbc5b4acead34f4c4042e6ba6800fecb64fc2e Mon Sep 17 00:00:00 2001 From: dadada Date: Tue, 6 Jul 2021 22:59:35 +0200 Subject: [PATCH] Add flake.nix. --- flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 flake.nix diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..31ae6dd --- /dev/null +++ b/flake.nix @@ -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 { }; + } + )); +}