diff options
author | Dusk Banks <me@bb010g.com> | 2021-05-23 16:08:46 -0700 |
---|---|---|
committer | Dusk Banks <me@bb010g.com> | 2021-05-23 19:02:04 -0700 |
commit | 35a1e99d7a41ab5da0afba91f69b49495f7c85f8 (patch) | |
tree | f85c4c6644479726c404a034f96c80fea92437a8 /pkgs/tools/misc/betterdiscordctl | |
parent | 0b6531b9e85efa1b7def209d7ed9bd32311f94ae (diff) |
betterdiscordctl: 1.7.1 -> 2.0.0
Diffstat (limited to 'pkgs/tools/misc/betterdiscordctl')
-rw-r--r-- | pkgs/tools/misc/betterdiscordctl/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/tools/misc/betterdiscordctl/default.nix b/pkgs/tools/misc/betterdiscordctl/default.nix index e839d9ef09ced..f75f3a6f82235 100644 --- a/pkgs/tools/misc/betterdiscordctl/default.nix +++ b/pkgs/tools/misc/betterdiscordctl/default.nix @@ -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; { |