uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 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
|
||||
, installShellFiles
|
||||
, coreutils
|
||||
, gnused
|
||||
, gnugrep
|
||||
, sqlite
|
||||
, wget
|
||||
, w3m
|
||||
, socat
|
||||
, gawk
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dasht";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sunaku";
|
||||
repo = pname;
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue