mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
45 lines
1.0 KiB
Nix
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 = "An 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 ];
|
|
};
|
|
}
|