update: devShells: inputs
This commit is contained in:
parent
001cb9222a
commit
6cf4c1f9d4
8
devShells/bonfire.nix
Normal file
8
devShells/bonfire.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{ crane-lib, pkgs, ... }:
|
||||
crane-lib.devShell {
|
||||
packages = with pkgs; [
|
||||
# nil
|
||||
jq
|
||||
cachix
|
||||
];
|
||||
}
|
@ -1,23 +1,30 @@
|
||||
# self.devShells.${system}
|
||||
#
|
||||
{ self, nixpkgs, crane, ... }:
|
||||
{ self, nixpkgs, ... }:
|
||||
let
|
||||
forAllSystems = nixpkgs.lib.genAttrs [ "x86_64-linux" ];
|
||||
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
|
||||
|
||||
in forAllSystems(system: let
|
||||
in forAllSystems(system:
|
||||
let environment = {
|
||||
pkgs = nixpkgsFor.${system};
|
||||
bpkgs = self.packages.${system};
|
||||
blib = self.lib;
|
||||
cranelib = crane.lib.${system};
|
||||
in {
|
||||
|
||||
netgen = import ./netgen.nix { inherit pkgs bpkgs; };
|
||||
bonfire = self;
|
||||
bonfire-lib = self.lib;
|
||||
bonfire-pkgs = self.packages.${system};
|
||||
|
||||
openfoam = import ./openfoam.nix { inherit pkgs bpkgs; };
|
||||
crane = self.inputs.crane;
|
||||
crane-lib = self.inputs.crane.lib.${system};
|
||||
}; in {
|
||||
|
||||
rust = import ./rust.nix { inherit pkgs cranelib; };
|
||||
rust-x11 = import ./rust-x11.nix { inherit pkgs cranelib; };
|
||||
default = import ./bonfire.nix environment;
|
||||
|
||||
go = import ./go.nix { inherit pkgs; };
|
||||
netgen = import ./netgen.nix environment;
|
||||
|
||||
openfoam = import ./openfoam.nix environment;
|
||||
|
||||
rust = import ./rust.nix environment;
|
||||
rust-x11 = import ./rust-x11.nix environment;
|
||||
|
||||
go = import ./go.nix environment;
|
||||
})
|
||||
|
@ -1,4 +1,11 @@
|
||||
{ pkgs, ... }:
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [ go gopls gotools go-tools golangci-lint gnumake ];
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
gopls
|
||||
gotools
|
||||
go-tools
|
||||
golangci-lint
|
||||
gnumake
|
||||
];
|
||||
}
|
||||
|
@ -1,15 +1,9 @@
|
||||
{ pkgs, bpkgs, ... }:
|
||||
let
|
||||
python = pkgs.python3.withPackages(ps: []);
|
||||
|
||||
in pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
bpkgs.netgen
|
||||
python
|
||||
{ pkgs, bonfire-pkgs, ... }:
|
||||
pkgs.mkShellNoCC {
|
||||
packages = [
|
||||
bonfire-pkgs.netgen
|
||||
pkgs.python3
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export PYTHONPATH="${python}/${python.sitePackages}"
|
||||
export PYTHONPATH="$PYTHONPATH:${bpkgs.netgen}/${python.sitePackages}"
|
||||
'';
|
||||
shellHook = bonfire-pkgs.netgen.passthru.shellHook;
|
||||
}
|
||||
|
@ -1,11 +1,9 @@
|
||||
{ pkgs, bpkgs, ... }:
|
||||
{ pkgs, bonfire-pkgs, ... }:
|
||||
pkgs.mkShellNoCC {
|
||||
packages = with pkgs; [
|
||||
bpkgs.openfoam
|
||||
mpi
|
||||
packages = [
|
||||
bonfire-pkgs.openfoam
|
||||
pkgs.mpi
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
. ${bpkgs.openfoam}/OpenFOAM-${bpkgs.openfoam.major}/etc/bashrc
|
||||
'';
|
||||
shellHook = bonfire-pkgs.openfoam.passthru.shellHook;
|
||||
}
|
||||
|
@ -1,21 +1,23 @@
|
||||
{ pkgs, cranelib, ... }:
|
||||
cranelib.devShell {
|
||||
{ pkgs, crane-lib, ... }:
|
||||
crane-lib.devShell rec {
|
||||
packages = with pkgs; [
|
||||
libGL
|
||||
xorg.libXi xorg.libX11 xorg.libXcursor xorg.libXrandr
|
||||
lld
|
||||
libxkbcommon
|
||||
pkg-config
|
||||
libGL
|
||||
vulkan-loader
|
||||
vulkan-headers
|
||||
vulkan-tools
|
||||
vulkan-validation-layers
|
||||
xorg.libXi
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
libxkbcommon
|
||||
libudev-zero
|
||||
alsa-lib
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${
|
||||
with pkgs; lib.makeLibraryPath [
|
||||
libGL
|
||||
xorg.libX11 xorg.libXi xorg.libXcursor xorg.libXrandr
|
||||
libxkbcommon
|
||||
vulkan-loader
|
||||
]
|
||||
}"
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.lib.makeLibraryPath packages}"
|
||||
'';
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
{ pkgs, cranelib, ... }:
|
||||
cranelib.devShell {
|
||||
packages = [];
|
||||
{ pkgs, crane-lib, ... }:
|
||||
crane-lib.devShell {
|
||||
packages = [
|
||||
pkgs.cargo-watch
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user