1
0
Fork 0

feat: nix

Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-11-27 22:50:25 -06:00
parent 459331572c
commit 993b3ff8bf
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": 1701141680,
"narHash": "sha256-qaPcwKI0RR6mxfn4sMrHEjjDl6VCEPUTRZhN+OFB6zg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4469e22700c47792f93daa882786d36f9bf8bc2a",
"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 = "gist";
inputs.nixpkgs.url = "github:nixos/nixpkgs";
outputs = {
self,
nixpkgs,
}: let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
gist = pkgs.buildGoModule {
pname = "gist";
version = "0.0.1";
src = ./.;
vendorHash = "sha256-PmcLgP8F+oO3dfPYMKQt8eLgywoz5OUtmj6bn7BPr1M=";
meta = with pkgs.lib; {
description = "";
homepage = "https://git.jojodev.com/jolheiser/gist";
license = licenses.mit;
maintainers = with maintainers; [jolheiser];
mainProgram = "gist";
};
};
in {
packages.x86_64-linux.default = gist;
};
}