Home

nur @main - refs - log -
-
https://git.jolheiser.com/nur.git
My NUR
tree log patch
feat: tmpl Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmSllz4ACgkQuFOtpdp7 v3qfTA//YGJnxAOsADPxytUlRbElNRWDRHxwyo1jVkpjyLW9Xbr0g84GQvi0epqX PTn9nXFiOCHdB9laHwAHmreofwFhkNyDmkr/7dLywQJy+82SM6PXHb603Y7azuu5 yKcUj4nnuVK136/U0kC38Qr2qmWFqPO2TuQlYGtOJ91AURq5nzkrSPQrV9afwc05 ali3RpTfB57VF93Fc7kRm0QeMdH+vX4PHqTbb9CgP+IuZEGMZRklehaDmMC0gDKL HHtbx17QEpsqS6EDJMBD6KB3E4Z4Y9+jfX8O2i+cpp054twKMktArun1to1roHcW iZV/RxHW0Eq++NBiG+VWEso+uALa0crc5SKAjmfklLmvn9n+ZZbqXz7N44p3+Ig+ nIbaFd/QKlJ78Lzdm4lCIE6PEylu+X79ioG2h8tzkGOVSWOb7kb95nYckIq+wMj4 DAvpTYMUox1j0qvxd/Wxd65rmy7BinMUDLTEVqq4YG9sNaTwH/o7PrrmTdUk1Q+e M/dk5R7VVqxuAys4WIkrwCcKRuKJoybURHVG8+9nRAwm+rdKNEL/1iIEIkWmelTO LhTZPLZnDVS8iAAmmpZDMT8zXTBQ+KF/1yHkDetdKRQK0LpFGS9AWhKpeeZ8i+pn ZqWOETrL3eVipcvsOAYoFkPpAePePN5jKLuQ0OB3vx2/8vpFB6U= =eaP0 -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
4 changed files, 31 additions(+), 17 deletions(-)
M default.nix -> default.nix
diff --git a/default.nix b/default.nix
index d6497c913792821327299a11d77f5266aa1e5d0b..973042a91fca407a34673a73f2d4b2b4c898da53 100644
--- a/default.nix
+++ b/default.nix
@@ -15,7 +15,5 @@   modules = import ./modules; # NixOS modules
   overlays = import ./overlays; # nixpkgs overlays
 
 # This file describes your repository contents.
-# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
-  # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
-  # ...
+{ pkgs ? import <nixpkgs> { } }:
 }
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index 81a143fa3f57524cc2945862e0fb1884b91a83a6..52c3005a0f6242c2d3cfd9b7574f63455d55015f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,5 +1,6 @@
 {
   description = "My personal NUR repository";
+  inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
   outputs = { self, nixpkgs }:
     let
@@ -12,15 +13,16 @@         "armv6l-linux"
         "armv7l-linux"
       ];
       forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
-{
+    in {
+  description = "My personal NUR repository";
     let
-{
+  description = "My personal NUR repository";
       systems = [
-{
+  description = "My personal NUR repository";
         "x86_64-linux"
-{
+  description = "My personal NUR repository";
         "i686-linux"
-      });
   description = "My personal NUR repository";
+        "x86_64-darwin"
     };
 }
D pkgs/example-package/default.nix
diff --git a/pkgs/example-package/default.nix b/pkgs/example-package/default.nix
deleted file mode 100644
index 41e22df3354f7b6c68cc81bc5846a7b1db73aae4..0000000000000000000000000000000000000000
--- a/pkgs/example-package/default.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ stdenv }:
-
-stdenv.mkDerivation rec {
-  name = "example-package-${version}";
-  version = "1.0";
-  src = ./.;
-  buildPhase = "echo echo Hello World > example";
-  installPhase = "install -Dm755 example $out";
-}
I pkgs/tmpl/default.nix
diff --git a/pkgs/tmpl/default.nix b/pkgs/tmpl/default.nix
new file mode 100644
index 0000000000000000000000000000000000000000..beb9485563cf107a5a09ec596594b1a01dceada2
--- /dev/null
+++ b/pkgs/tmpl/default.nix
@@ -0,0 +1,23 @@
+{ buildGoModule, fetchFromGitea, lib, ... }:
+buildGoModule rec {
+  pname = "tmpl";
+  version = "0.3.1";
+
+  src = fetchFromGitea {
+    domain = "git.jojodev.com";
+    owner = "jolheiser";
+    repo = "tmpl";
+    rev = "v${version}";
+    sha256 = "sha256-2GThTkTSiPv4SiWmRC/acKQ7k5uqrQQRM56eOxWCg7Q=";
+  };
+
+  vendorSha256 = "sha256-PmguDbjTSz0jzj1pwUNZrO1aAFNkWSo/FAef29TjsGI=";
+
+  ldflags = [ "-s" "-w" "-X=go.jolheiser.com/tmpl/cmd.Version=${version}" ];
+
+  meta = with lib; {
+    description = "Template automation for bootstrapping projects";
+    homepage = "https://git.jojodev.com/jolheiser/tmpl";
+    license = licenses.mit;
+  };
+}