mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
70 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|