Add Nix flake examples
This commit is contained in:
parent
73bf053c8e
commit
b4cf963495
6 changed files with 162 additions and 0 deletions
20
nix/flakes/simple/flake.nix
Normal file
20
nix/flakes/simple/flake.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs =
|
||||
inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import inputs.nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
go
|
||||
php
|
||||
phpPackages.composer
|
||||
tailwindcss
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue