42 lines
993 B
Nix
42 lines
993 B
Nix
|
|
{
|
||
|
|
inputs = {
|
||
|
|
devenv.url = "github:cachix/devenv";
|
||
|
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
nixpkgs-python.url = "github:cachix/nixpkgs-python";
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = inputs @ {
|
||
|
|
self,
|
||
|
|
devenv,
|
||
|
|
flake-utils,
|
||
|
|
nixpkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
||
|
|
pkgs = import nixpkgs {
|
||
|
|
inherit system;
|
||
|
|
config.allowUnfree = true;
|
||
|
|
};
|
||
|
|
in {
|
||
|
|
packages = {
|
||
|
|
devenv-up = self.devShells.${system}.default.config.procfileScript;
|
||
|
|
devenv-test = self.devShells.${system}.default.config.test;
|
||
|
|
};
|
||
|
|
|
||
|
|
devShells.default = devenv.lib.mkShell {
|
||
|
|
inherit inputs pkgs;
|
||
|
|
modules = [
|
||
|
|
{
|
||
|
|
git-hooks.hooks.alejandra.enable = true;
|
||
|
|
languages = {
|
||
|
|
nix.enable = true;
|
||
|
|
rust.enable = true;
|
||
|
|
typst.enable = true;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|