blog/flake.nix

32 lines
978 B
Nix
Raw Normal View History

2024-06-26 23:18:25 +00:00
{
inputs.agda.url = "github:agda/agda";
2024-10-21 11:42:10 +00:00
inputs.agda.inputs.nixpkgs.follows = "nixpkgs";
2024-06-29 19:04:50 +00:00
outputs = { self, nixpkgs, flake-utils, agda, }:
flake-utils.lib.eachDefaultSystem (system:
let
2024-10-21 11:42:10 +00:00
pkgs = import nixpkgs { inherit system; overlays = [ agda.overlays.default ]; };
2024-06-29 19:04:50 +00:00
agda-pkg = agda.packages.x86_64-linux.default;
flakePkgs = rec {
2024-10-21 11:42:10 +00:00
agda-bin = pkgs.callPackage ./nix/agda-bin.nix { agda-pkg = pkgs.haskellPackages.Agda.bin; };
2024-06-29 19:04:50 +00:00
docker-builder =
pkgs.callPackage ./nix/docker-builder.nix { inherit agda-bin; };
};
in {
packages = flake-utils.lib.flattenTree flakePkgs;
devShell = pkgs.mkShell {
ASTRO_TELEMETRY_DISABLED = 1;
packages = with pkgs;
with flakePkgs; [
bun
nixfmt-rfc-style
nix-tree
shellcheck
nodejs_20
corepack
];
};
});
2024-06-26 23:18:25 +00:00
}