convert to flake

This commit is contained in:
2023-02-28 19:56:32 +01:00
committed by tv
parent d1424777b5
commit 66a1f68334
4 changed files with 74 additions and 5 deletions

View File

@@ -17,9 +17,9 @@
# nix-build hello_world.nix.
#
with import ../lib;
pkgs: oldpkgs: {
pkgs: oldpkgs:
with import ../lib { nixpkgs = pkgs; };
{
exec = name: { filename, argv ? null, envp ? null, destination ? "" }:
pkgs.writeC name { inherit destination; } /* c */ ''
#include <unistd.h>