feat: nix
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline was successful Details

Signed-off-by: jolheiser <john.olheiser@gmail.com>
pull/31/head
jolheiser 2023-12-19 22:13:17 -06:00
parent 44de3c2376
commit 14e98bccee
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
2 changed files with 56 additions and 0 deletions

26
flake.lock 100644
View File

@ -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
}

30
flake.nix 100644
View File

@ -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;
};
}