chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / be / betterdiscordctl / package.nix
blob9c9f9d7a545f8dbd09f70e9a8a49386fc9f44b56
2   fetchFromGitHub,
3   lib,
4   stdenvNoCC,
5 }:
7 stdenvNoCC.mkDerivation (finalAttrs: {
8   pname = "betterdiscordctl";
9   version = "2.0.1";
11   src = fetchFromGitHub {
12     owner = "bb010g";
13     repo = "betterdiscordctl";
14     rev = "v${finalAttrs.version}";
15     hash = "sha256-bAHO+2urgbL2LXiP0UZpvszX73PYtKbTOeLDyFwOYlw=";
16   };
18   postPatch = ''
19     substituteInPlace betterdiscordctl \
20       --replace-fail "DISABLE_SELF_UPGRADE=" "DISABLE_SELF_UPGRADE=yes"
21   '';
23   installPhase = ''
24     runHook preInstall
26     install -Dm 755 -t "$out/bin" -- betterdiscordctl
27     install -Dm 644 -t "$out/share/doc/betterdiscordctl" -- README.md
29     runHook postInstall
30   '';
32   doInstallCheck = true;
34   installCheckPhase = ''
35     runHook preInstallCheck
37     "$out/bin/betterdiscordctl" --version
39     runHook postInstallCheck
40   '';
42   meta = {
43     homepage = "https://github.com/bb010g/betterdiscordctl";
44     description = "Utility for managing BetterDiscord on Linux";
45     license = lib.licenses.mit;
46     mainProgram = "betterdiscordctl";
47     maintainers = [ ];
48     platforms = lib.platforms.linux;
49   };