mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-02-22 21:05:23 +08:00
temp
This commit is contained in:
parent
2b224e8e0e
commit
50210f3f88
3 changed files with 3 additions and 8 deletions
22
source/recipes/devshell/env-var/tempwork/flake.nix
Normal file
22
source/recipes/devshell/env-var/tempwork/flake.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShells = rec {
|
||||
default = pkgs.mkShell {
|
||||
shellHook = ''
|
||||
export FOO="bar"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue