add project template

This commit is contained in:
Jörg Thalheim 2021-05-29 09:19:31 +02:00
parent 1134713112
commit 5655ef0fbd
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4
7 changed files with 85 additions and 20 deletions

15
template/flake.nix Normal file
View file

@ -0,0 +1,15 @@
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
in {
devShell = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = [ ];
};
});
}