From 14e98bcceeebcc90044521b2ed1c24cde5734c21 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Tue, 19 Dec 2023 22:13:17 -0600 Subject: [PATCH] feat: nix Signed-off-by: jolheiser --- flake.lock | 26 ++++++++++++++++++++++++++ flake.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7ee1e8d --- /dev/null +++ b/flake.lock @@ -0,0 +1,26 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1703042410, + "narHash": "sha256-LKhDz1Lxp+QgL6UpuPCLkMAx6JvabwwyIoeoQd1A7Sc=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "7dbe085eb6870dc0b729254c987f626c2a6e71d7", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3355676 --- /dev/null +++ b/flake.nix @@ -0,0 +1,30 @@ +{ + description = "tmpl"; + + inputs.nixpkgs.url = "github:nixos/nixpkgs"; + + outputs = { + self, + nixpkgs, + }: let + pkgs = nixpkgs.legacyPackages.x86_64-linux; + tmpl = pkgs.buildGoModule { + pname = "tmpl"; + version = "0.4.0"; + + src = ./.; + + vendorHash = "sha256-QNwzHC4fHLAhshOplKmMjRYa9sHNjBLdfBgANbs/iKk="; + + meta = with pkgs.lib; { + description = ""; + homepage = "https://git.jojodev.com/jolheiser/tmpl"; + license = licenses.mit; + maintainers = with maintainers; [jolheiser]; + mainProgram = "tmpl"; + }; + }; + in { + packages.x86_64-linux.default = tmpl; + }; +}