mirror of
https://github.com/NotAShelf/projectile-simulation.git
synced 2024-11-01 19:11:18 +00:00
clean up nix tooling
This commit is contained in:
parent
553d5251ca
commit
ddab9f6068
2 changed files with 16 additions and 10 deletions
|
@ -11,12 +11,14 @@
|
||||||
pkgsForEach = nixpkgs.legacyPackages;
|
pkgsForEach = nixpkgs.legacyPackages;
|
||||||
in {
|
in {
|
||||||
packages = forEachSystem (system: {
|
packages = forEachSystem (system: {
|
||||||
default = pkgsForEach.${system}.callPackage ./default.nix {};
|
default = self.packages.${system}.projectile-simulation;
|
||||||
|
projectile-simulation = pkgsForEach.${system}.callPackage ./default.nix {};
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = forEachSystem (system: {
|
devShells = forEachSystem (system: {
|
||||||
devShells = {
|
devShells = {
|
||||||
default = pkgsForEach.${system}.callPackage ./shell.nix {};
|
default = self.devShells.${system}.python-shell;
|
||||||
|
python-shell = pkgsForEach.${system}.callPackage ./shell.nix {};
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
20
shell.nix
20
shell.nix
|
@ -1,9 +1,13 @@
|
||||||
{pkgs, ...}: let
|
{
|
||||||
my-python-packages = ps:
|
callPackage,
|
||||||
with ps; [
|
mkShellNoCC,
|
||||||
matplotlib
|
python3,
|
||||||
numpy
|
...
|
||||||
];
|
}: let
|
||||||
my-python = pkgs.python3.withPackages my-python-packages;
|
defaultPackage = callPackage ./default.nix;
|
||||||
in
|
in
|
||||||
my-python.env
|
mkShellNoCC {
|
||||||
|
packages = [
|
||||||
|
(python3.withPackages defaultPackage.propagatedBuildInputs)
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue