From 423914276f9623786e1d33e486b26a1406115067 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 17 May 2023 02:54:40 -0400 Subject: templates: init basic & full --- templates/full/nix/packages/hello.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 templates/full/nix/packages/hello.nix (limited to 'templates/full/nix/packages/hello.nix') diff --git a/templates/full/nix/packages/hello.nix b/templates/full/nix/packages/hello.nix new file mode 100644 index 0000000..30cfc8d --- /dev/null +++ b/templates/full/nix/packages/hello.nix @@ -0,0 +1,29 @@ +{ + lib, + stdenv, + version, + ... +}: let + inherit (lib) licenses maintainers platforms; +in + stdenv.mkDerivation rec { + pname = "hello"; + inherit version; + + src = builtins.path { + name = "${pname}-src"; + path = ./.; + }; + + installPhase = '' + echo "hi" > $out + ''; + + meta = { + description = ""; + homepage = ""; + license = licenses.mit; + maintainers = [maintainers.getchoo]; + platforms = platforms.linux; + }; + } -- cgit v1.2.3