added nix flake

This commit is contained in:
lew2mz 2022-08-19 11:39:12 -04:00 committed by Maas Lalani
parent 76fc2f3d91
commit 5993a7b490
3 changed files with 44 additions and 0 deletions

3
.gitignore vendored
View file

@ -10,3 +10,6 @@ testdata
# Folders
completions/
manpages/
# nix
result

25
flake.lock Normal file
View file

@ -0,0 +1,25 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1660639432,
"narHash": "sha256-2WDiboOCfB0LhvnDVMXOAr8ZLDfm3WdO54CkoDPwN1A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6c6409e965a6c883677be7b9d87a95fab6c3472e",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

16
flake.nix Normal file
View file

@ -0,0 +1,16 @@
{
outputs = {self, nixpkgs, ...}:
let
system="x86_64-linux";
pkgs=import nixpkgs {inherit system;};
in
{
packages.${system}.default = pkgs.buildGoModule {
name = "gum";
src = self;
vendorSha256="vvNoO5eABGVwvAzK33uPelmo3BKxfqiYgEXZI7kgeSo=";
};
};
}