depot/third_party/nixpkgs/pkgs/by-name/lu/luneta/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
1 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 ];
};
}