mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
42 lines
934 B
Nix
42 lines
934 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "deja";
|
|
version = "0.2.6";
|
|
__structuredAttrs = true;
|
|
src = fetchFromGitHub {
|
|
owner = "Giammarco-Ferranti";
|
|
repo = "deja";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-0eRXPtm+L1C4/fc/WLn9p2LV8uhJ4w+40hhA69+CEdw=";
|
|
};
|
|
|
|
vendorHash = "sha256-KmLdMK94cGOXMPJwWS6NgLB5OiNmJbszHdnLzauqJm8=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=${finalAttrs.version}"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [versionCheckHook];
|
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
meta = {
|
|
description = "Predictive inline shell autosuggestions for zsh";
|
|
homepage = "https://github.com/Giammarco-Ferranti/deja";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [tomasrivera];
|
|
mainProgram = "deja";
|
|
};
|
|
})
|