28 lines
605 B
Nix
28 lines
605 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
systems.url = "github:nix-systems/x86_64-linux";
|
|
flake-utils = {
|
|
url = "github:numtide/flake-utils";
|
|
inputs.systems.follows = "systems";
|
|
};
|
|
};
|
|
outputs =
|
|
{ flake-utils
|
|
, nixpkgs
|
|
, ...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
pkg = pkgs.callPackage ./. { };
|
|
shell = pkgs.callPackage ./shell.nix { inherit pkg; };
|
|
in
|
|
{
|
|
devShells.default = shell;
|
|
packages.default = pkg;
|
|
});
|
|
}
|