mirror of
https://github.com/charmbracelet/gum
synced 2024-05-04 23:43:15 +02:00
added nix flake
This commit is contained in:
parent
76fc2f3d91
commit
5993a7b490
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -10,3 +10,6 @@ testdata
|
||||||
# Folders
|
# Folders
|
||||||
completions/
|
completions/
|
||||||
manpages/
|
manpages/
|
||||||
|
|
||||||
|
# nix
|
||||||
|
result
|
||||||
|
|
25
flake.lock
Normal file
25
flake.lock
Normal 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
16
flake.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue