feat: nix (#31)
ci/woodpecker/push/woodpecker Pipeline was successful Details

Reviewed-on: #31
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>
pull/32/head
jolheiser 2023-12-20 04:14:45 +00:00 committed by jolheiser
parent 44de3c2376
commit 01944e1a3a
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;
};
}