projectile-simulation/flake.nix

26 lines
670 B
Nix
Raw Permalink Normal View History

2023-10-07 20:53:53 +00:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
2023-10-10 07:04:52 +00:00
default = self.packages.${system}.projectile-simulation;
projectile-simulation = pkgsForEach.${system}.callPackage ./default.nix {};
2023-10-07 20:53:53 +00:00
});
devShells = forEachSystem (system: {
devShells = {
2023-10-10 07:04:52 +00:00
default = self.devShells.${system}.python-shell;
python-shell = pkgsForEach.${system}.callPackage ./shell.nix {};
2023-10-07 20:53:53 +00:00
};
});
};
}