Merge pull request #233548 from MatthewCroughan/mc/update-discord-sh
discord-sh: unstable-2022-05-19 -> 2.0.0
This commit is contained in:
commit
b3f6279dcd
|
@ -1,14 +1,14 @@
|
||||||
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, curl, jq, coreutils }:
|
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, curl, jq, coreutils, file }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "discord-sh";
|
pname = "discord-sh";
|
||||||
version = "unstable-2022-05-19";
|
version = "2.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ChaoticWeg";
|
owner = "ChaoticWeg";
|
||||||
repo = "discord.sh";
|
repo = "discord.sh";
|
||||||
rev = "6aaea548f88eb48b7adeef824fbddac1c4749447";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-RoPhn/Ot4ID1nEbZEz1bd2iq8g7mU2e7kwNRvZOD/pc=";
|
sha256 = "sha256-ZOGhwR9xFzkm+q0Gm8mSXZ9toXG4xGPNwBQMCVanCbY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ignore Makefile by disabling buildPhase. Upstream Makefile tries to download
|
# ignore Makefile by disabling buildPhase. Upstream Makefile tries to download
|
||||||
|
@ -36,7 +36,7 @@ stdenvNoCC.mkDerivation {
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
install -Dm555 discord.sh $out/bin/discord.sh
|
install -Dm555 discord.sh $out/bin/discord.sh
|
||||||
wrapProgram $out/bin/discord.sh \
|
wrapProgram $out/bin/discord.sh \
|
||||||
--set PATH "${lib.makeBinPath [ curl jq coreutils ]}"
|
--set PATH "${lib.makeBinPath [ curl jq coreutils file ]}"
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue