Template : Add FHSEnv.nix thanks to Александр Бантьев.
This commit is contained in:
parent
47fc8ac39c
commit
ca4feb305b
20
document/template/FHSEnv.nix
Normal file
20
document/template/FHSEnv.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
description = "";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs } @inputs: let
|
||||
system = "x86_64-linux";
|
||||
lib = nixpkgs.lib;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in {
|
||||
devShells.${system} = {
|
||||
default = with pkgs; (buildFHSEnv {
|
||||
name = "FHSEnv";
|
||||
targetPkgs = pkgs: with pkgs; [ ];
|
||||
}).env;
|
||||
};
|
||||
};
|
||||
}
|
Reference in a new issue