forked from fabian/nix_config
templates: add 'system-flake' template
This commit is contained in:
parent
4b8609385a
commit
3a3d73d5b6
15 changed files with 212 additions and 0 deletions
14
templates/system-flake/pkgs/hello-world/default.nix
Normal file
14
templates/system-flake/pkgs/hello-world/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{stdenv, ...}:
|
||||
stdenv.mkDerivation {
|
||||
name = "hello-world";
|
||||
version = "1.0.0";
|
||||
|
||||
src = ./.;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp hello-world $out/bin
|
||||
'';
|
||||
|
||||
meta.mainProgram = "hello-world";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue