Set up nix shell, aniseed

This commit is contained in:
Barry Moore 2023-01-27 15:08:37 -05:00
parent 6db31714b5
commit 1f6f0c40e8
7 changed files with 139 additions and 0 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
description = "Setup aniseed";
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
pkgs = import nixpkgs {
inherit system;
# config.allowBroken = true;
};
aniseed = pkgs.callPackage ./nix/aniseed.nix {};
in {
devShell = import ./nix/shell.nix {
inherit pkgs;
};
defaultPackage = aniseed;
packages = flake-utils.lib.flattenTree {
inherit aniseed;
};
});
}