Skip to content

Commit

Permalink
flake multinst
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Feb 13, 2025
1 parent 63ccb1b commit ced3d68
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
# TODO: switch back to nixos-unstable after
# https://github.com/NixOS/nixpkgs/pull/357705
nixpkgs.url = "github:NixOS/nixpkgs/refs/pull/357705/head";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs =
Expand All @@ -19,7 +17,20 @@
type = "app";
program = pkgs.python3.withPackages (_: [ self'.packages.default ]);
};
devShells.default = pkgs.mkShell { inputsFrom = [ self'.packages.default ]; };
devShells.default = with pkgs; mkShell {
inputsFrom = [ self'.packages.default ];
packages = let
py = p: [
p.boost
p.eigenpy
p.numpy
p.scipy
];
in [
(python312.withPackages py)
(python313.withPackages py)
];
};
packages = {
default = self'.packages.coal;
coal = pkgs.python3Packages.coal.overrideAttrs (_: {
Expand Down

0 comments on commit ced3d68

Please sign in to comment.