mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
dasht: init at v2.3.0
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
ecfcf8bdf0
commit
e77902ce7b
2 changed files with 67 additions and 0 deletions
65
pkgs/tools/misc/dasht/default.nix
Normal file
65
pkgs/tools/misc/dasht/default.nix
Normal file
|
@ -0,0 +1,65 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, makeWrapper
|
||||
, coreutils
|
||||
, gnused
|
||||
, gnugrep
|
||||
, sqlite
|
||||
, wget
|
||||
, w3m
|
||||
, socat
|
||||
, gawk
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.3.0";
|
||||
name = "dasht-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sunaku";
|
||||
repo = "dasht";
|
||||
rev = "v${version}";
|
||||
sha256 = "0d0pcjalba58nvxdgn39m4b6n9ifajf3ygyjaqgvzwxzgpzw0a60";
|
||||
};
|
||||
|
||||
deps = lib.makeBinPath [
|
||||
coreutils
|
||||
gnused
|
||||
gnugrep
|
||||
sqlite
|
||||
wget
|
||||
w3m
|
||||
socat
|
||||
gawk
|
||||
(placeholder "out")
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin
|
||||
cp bin/* $out/bin/
|
||||
|
||||
mkdir -p $out/share/man/man1
|
||||
cp man/man1/* $out/share/man/man1/
|
||||
|
||||
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 = stdenv.lib.licenses.isc;
|
||||
platforms = stdenv.lib.platforms.unix; #cannot test other
|
||||
maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ];
|
||||
};
|
||||
}
|
||||
|
|
@ -6535,6 +6535,8 @@ in
|
|||
|
||||
dash = callPackage ../shells/dash { };
|
||||
|
||||
dasht = callPackage ../tools/misc/dasht { };
|
||||
|
||||
dashing = callPackage ../tools/misc/dashing { };
|
||||
|
||||
es = callPackage ../shells/es { };
|
||||
|
|
Loading…
Reference in a new issue