nixpkgs/pkgs/by-name/lu/luneta/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

45 lines
1.0 KiB
Nix

{
lib,
buildDubPackage,
fetchFromGitHub,
ncurses,
}:
buildDubPackage rec {
pname = "luneta";
version = "0.7.4";
src = fetchFromGitHub {
owner = "fbeline";
repo = "luneta";
rev = "v${version}";
hash = "sha256-pYE8hccXT87JIMh71PtXzVQBegTzU7bdpVEaV2VkaEk=";
};
# not sure why, but this alias does not resolve
postPatch = ''
substituteInPlace source/luneta/keyboard.d \
--replace-fail "wint_t" "dchar"
'';
# ncurses dub package version is locked to 1.0.0 instead of using ~master
dubLock = ./dub-lock.json;
buildInputs = [ ncurses ];
installPhase = ''
runHook preInstall
install -Dm755 luneta -t $out/bin
runHook postInstall
'';
meta = {
changelog = "https://github.com/fbeline/luneta/releases/tag/${src.rev}";
description = "Interactive filter and fuzzy finder for the command-line";
homepage = "https://github.com/fbeline/luneta";
license = lib.licenses.gpl2Only;
mainProgram = "luneta";
maintainers = with lib.maintainers; [ tomasajt ];
};
}