mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #124211 from bb010g/betterdiscordctl-2
betterdiscordctl: 1.7.1 -> 2.0.0
This commit is contained in:
commit
c15db484c7
1 changed files with 11 additions and 5 deletions
|
@ -2,22 +2,28 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "betterdiscordctl";
|
||||
version = "1.7.1";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bb010g";
|
||||
repo = "betterdiscordctl";
|
||||
rev = "v${version}";
|
||||
sha256 = "12c3phcfwl4p2jfh22ihm57vxw4nq5kwqirb7y4gzc91swfh5yj1";
|
||||
sha256 = "1wys3wbcz5hq8275ia2887kr5fzz4b3gkcp56667j9k0p3k3zfac";
|
||||
};
|
||||
|
||||
preBuild = "sed -i 's/^nix=$/&yes/g;s/^DISABLE_UPGRADE=$/&yes/g' ./betterdiscordctl";
|
||||
postPatch = ''
|
||||
substituteInPlace betterdiscordctl \
|
||||
--replace "DISABLE_SELF_UPGRADE=" "DISABLE_SELF_UPGRADE=yes"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
mkdir -p $out/share/doc/betterdiscordctl
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue