Files
nixpkgs/pkgs/by-name/da/dasht/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.2 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
installShellFiles,
coreutils,
gnused,
gnugrep,
sqlite,
wget,
w3m,
socat,
gawk,
}:
stdenv.mkDerivation rec {
pname = "dasht";
version = "2.4.0";
src = fetchFromGitHub {
owner = "sunaku";
repo = "dasht";
rev = "v${version}";
sha256 = "08wssmifxi7pnvn9gqrvpzpkc2qpkfbzbhxh0dk1gff2y2211qqk";
};
deps = lib.makeBinPath [
coreutils
gnused
gnugrep
sqlite
wget
w3m
socat
gawk
(placeholder "out")
];
nativeBuildInputs = [
makeWrapper
installShellFiles
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp bin/* $out/bin/
installManPage man/man1/*
installShellCompletion --zsh etc/zsh/completions/*
for i in $out/bin/*; do
echo "Wrapping $i"
wrapProgram $i --prefix PATH : ${deps};
done;
runHook postInstall
'';
meta = {
description = "Search API docs offline, in terminal or browser";
homepage = "https://sunaku.github.io/dasht/man";
license = lib.licenses.isc;
platforms = lib.platforms.unix; # cannot test other
maintainers = with lib.maintainers; [ matthiasbeyer ];
};
}