12 stdenvNoCC.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-ZOGhwR9xFzkm+q0Gm8mSXZ9toXG4xGPNwBQMCVanCbY=";
23 # ignore Makefile by disabling buildPhase. Upstream Makefile tries to download
24 # binaries from the internet for linting
27 # discord.sh looks for the .webhook file in the source code directory, which
28 # isn't mutable on Nix
30 substituteInPlace discord.sh \
31 --replace 'thisdir="$(cd "$(dirname "$(readlink -f "''${BASH_SOURCE[0]}")")" && pwd)"' 'thisdir="$(pwd)"'
34 nativeBuildInputs = [ makeWrapper ];
36 doInstallCheck = true;
38 installCheckPhase = ''
40 $out/bin/discord.sh --help
46 install -Dm555 discord.sh $out/bin/discord.sh
47 wrapProgram $out/bin/discord.sh \
60 description = "Write-only command-line Discord webhook integration written in 100% Bash script";
61 mainProgram = "discord.sh";
62 homepage = "https://github.com/ChaoticWeg/discord.sh";
63 license = licenses.gpl3;
64 platforms = platforms.unix;
65 maintainers = with maintainers; [ matthewcroughan ];