nix: add devshell
This commit is contained in:
parent
264ce36286
commit
b361cdfcc7
4 changed files with 20 additions and 2 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake .
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -2,5 +2,6 @@
|
|||
|
||||
# Added by cargo
|
||||
|
||||
/target
|
||||
/result
|
||||
target
|
||||
result
|
||||
.direnv
|
||||
|
|
|
@ -10,5 +10,11 @@
|
|||
inherit system inputs;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
});
|
||||
devShells = nixpkgs.lib.attrsets.genAttrs nixpkgs.lib.systems.flakeExposed (system: {
|
||||
default = import ./shell.nix {
|
||||
inherit system inputs;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
10
shell.nix
Normal file
10
shell.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
pkgs,
|
||||
system,
|
||||
inputs,
|
||||
}:
|
||||
|
||||
pkgs.mkShell {
|
||||
packages = with pkgs; [];
|
||||
inputsFrom = with inputs.self.legacyPackages.${system}; [ backend web native ];
|
||||
}
|
Loading…
Reference in a new issue