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
51
pkgs/applications/misc/bashSnippets/default.nix
Normal file
51
pkgs/applications/misc/bashSnippets/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
||||
, curl, python3, bind, iproute2, bc, gitMinimal }:
|
||||
let
|
||||
version = "1.23.0";
|
||||
deps = lib.makeBinPath [
|
||||
curl
|
||||
python3
|
||||
bind.dnsutils
|
||||
iproute2
|
||||
bc
|
||||
gitMinimal
|
||||
];
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "bashSnippets";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alexanderepstein";
|
||||
repo = "Bash-Snippets";
|
||||
rev = "v${version}";
|
||||
sha256 = "044nxgd3ic2qr6hgq5nymn3dyf5i4s8mv5z4az6jvwlrjnvbg8cp";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs install.sh
|
||||
substituteInPlace install.sh --replace /usr/local "$out"
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"/bin "$out"/share/man/man1
|
||||
./install.sh all
|
||||
for file in "$out"/bin/*; do
|
||||
wrapProgram "$file" --prefix PATH : "${deps}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A collection of small bash scripts for heavy terminal users";
|
||||
homepage = "https://github.com/alexanderepstein/Bash-Snippets";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ infinisil ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue