financier-nix/flake.nix
Martin Puppe 8c56307c55 Add nix flake support
With this commit, we add nix flake support. Flakes are evaluated in pure
evaluation mode. The script generate.sh does not work in pure evaluation
mode since it node2nix fetches itself resources from the network. In
order to enable pure evaluation, we add the generated nix files to this
repository.
2021-09-20 00:11:34 +02:00

18 lines
530 B
Nix

{
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
let overlay = import ./overlay.nix;
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ overlay ];
};
in {
packages = { inherit (pkgs) financier-dist; };
defaultPackage = self.packages.${system}.financier-dist;
}) // {
inherit overlay;
nixosModule = import ./module.nix;
};
}