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
42
pkgs/tools/misc/betterdiscordctl/default.nix
Normal file
42
pkgs/tools/misc/betterdiscordctl/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "betterdiscordctl";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bb010g";
|
||||
repo = "betterdiscordctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "0p321rfcihz2779sdd6qfgpxgk5yd53d33vq5pvb50dbdgxww0bc";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace betterdiscordctl \
|
||||
--replace "DISABLE_SELF_UPGRADE=" "DISABLE_SELF_UPGRADE=yes"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/bin" "$out/share/doc/betterdiscordctl"
|
||||
install -Dm744 betterdiscordctl $out/bin/betterdiscordctl
|
||||
install -Dm644 README.md $out/share/doc/betterdiscordctl/README.md
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
installCheckPhase = ''
|
||||
$out/bin/betterdiscordctl --version
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/bb010g/betterdiscordctl";
|
||||
description = "A utility for managing BetterDiscord on Linux";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ivar bb010g ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue