Thu 1 Aug 19:38:03 CEST 2024

This commit is contained in:
Thomas Avé 2024-08-01 19:38:03 +02:00
parent edb50c3b34
commit a1af9b3e6c
8 changed files with 103 additions and 0 deletions

27
default.nix Normal file
View File

@ -0,0 +1,27 @@
{
buildGoModule,
lib,
}:
buildGoModule {
pname = "fzgo";
version = "0.1.0";
src = builtins.path {
name = "fzgo-source";
path = ./src;
};
vendorHash = "sha256-0YG2kf1500UpSdDK+ONGTKGZFrIivi/O1g2uIkgd4DA=";
nativeBuildInputs = [ ];
buildInputs = [ ];
meta = with lib; {
description = "An alternative to FZF written in Go, specifically optimized for file path selection.";
homepage = "https://git.thomasave.be/thomasave/fzgo";
license = licenses.mit;
maintainers = with maintainers; [thomasave];
platforms = platforms.linux;
mainProgram = "fzgo";
};
}

48
flake.lock Normal file
View File

@ -0,0 +1,48 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1719994518,
"narHash": "sha256-pQMhCCHyQGRzdfAkdJ4cIWiw+JNuWsTX7f0ZYSyz0VY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9227223f6d922fee3c7b190b2cc238a99527bbb7",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1722421184,
"narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "9f918d616c5321ad374ae6cb5ea89c9e04bf3e58",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

28
flake.nix Normal file
View File

@ -0,0 +1,28 @@
{
description = "An alternative to FZF written in Go, specifically optimized for file path selection.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux"];
perSystem = {
pkgs,
system,
...
}: let
fzgo = pkgs.callPackage ./. {};
in {
formatter = pkgs.alejandra;
packages = {
default = fzgo;
inherit fzgo;
};
};
};
}

View File

View File

View File