7 stdenvNoCC.mkDerivation (finalAttrs: {
8 pname = "betterdiscordctl";
11 src = fetchFromGitHub {
13 repo = "betterdiscordctl";
14 rev = "v${finalAttrs.version}";
15 hash = "sha256-bAHO+2urgbL2LXiP0UZpvszX73PYtKbTOeLDyFwOYlw=";
19 substituteInPlace betterdiscordctl \
20 --replace-fail "DISABLE_SELF_UPGRADE=" "DISABLE_SELF_UPGRADE=yes"
26 install -Dm 755 -t "$out/bin" -- betterdiscordctl
27 install -Dm 644 -t "$out/share/doc/betterdiscordctl" -- README.md
32 doInstallCheck = true;
34 installCheckPhase = ''
35 runHook preInstallCheck
37 "$out/bin/betterdiscordctl" --version
39 runHook postInstallCheck
43 homepage = "https://github.com/bb010g/betterdiscordctl";
44 description = "Utility for managing BetterDiscord on Linux";
45 license = lib.licenses.mit;
46 mainProgram = "betterdiscordctl";
48 platforms = lib.platforms.linux;