dev: add flake for dev shell
This commit is contained in:
parent
8839585eaf
commit
d1b1337c8f
2 changed files with 49 additions and 0 deletions
24
flake.nix
Normal file
24
flake.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
description = "ergogen dev env";
|
||||
|
||||
#inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; Uses the cuda driver installed on the system, hence commented out.
|
||||
#inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; Forcing a specific version will likely result in conflicts!
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; config.cudaSupport = true; config.cudnnSupport = true; config.allowUnfree = true; };
|
||||
in {
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
ergogen
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo loaded ergogen shell
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue