nixpkgs/pkgs/tools/misc/betterdiscordctl/default.nix

31 lines
878 B
Nix
Raw Normal View History

2021-04-02 20:35:33 +00:00
{ lib, stdenv, fetchFromGitHub }:
2020-05-05 13:22:25 +00:00
stdenv.mkDerivation rec {
pname = "betterdiscordctl";
2021-04-02 20:35:33 +00:00
version = "1.7.1";
2020-05-05 13:22:25 +00:00
src = fetchFromGitHub {
owner = "bb010g";
repo = "betterdiscordctl";
rev = "v${version}";
2021-04-02 20:35:33 +00:00
sha256 = "12c3phcfwl4p2jfh22ihm57vxw4nq5kwqirb7y4gzc91swfh5yj1";
2020-05-05 13:22:25 +00:00
};
preBuild = "sed -i 's/^nix=$/&yes/g;s/^DISABLE_UPGRADE=$/&yes/g' ./betterdiscordctl";
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/share/doc/betterdiscordctl
install -Dm744 betterdiscordctl $out/bin/betterdiscordctl
install -Dm644 README.md $out/share/doc/betterdiscordctl/README.md
'';
meta = with lib; {
2020-05-05 13:22:25 +00:00
homepage = "https://github.com/bb010g/betterdiscordctl";
description = "A utility for managing BetterDiscord on Linux";
license = licenses.mit;
maintainers = with maintainers; [ ivar bb010g ];
platforms = platforms.linux;
};
}