hyprspace/flake.nix

38 lines
1007 B
Nix

{
description = "Hyprspace";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
flake.herculesCI.ciSystems = [ "x86_64-linux" "aarch64-linux" ];
imports = [
inputs.process-compose-flake.flakeModule
./dev/run.nix
];
perSystem = { config, pkgs, ... }: {
packages.default = pkgs.callPackage ./package.nix {};
devShells.default = pkgs.mkShell {
packages = [
pkgs.go
config.packages.dev-run
];
shellHook = ''
export GOPATH="$PWD/.data/go";
'';
};
};
};
}