mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
63 lines
1.2 KiB
Nix
63 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
stdenv,
|
|
makeBinaryWrapper,
|
|
}:
|
|
let
|
|
version = "2.6.9";
|
|
python = python3.withPackages (p: [
|
|
p.discordpy
|
|
p.motor
|
|
p.dnspython
|
|
p.tldextract
|
|
p.validators
|
|
p.humanize
|
|
p.beautifulsoup4
|
|
p.psutil
|
|
]);
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "vocard";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ChocoMeow";
|
|
repo = "Vocard";
|
|
tag = "v${version}";
|
|
hash = "sha256-21n+6LqXYVXc8ynS62IvWHxK76xxfatN8e99KDPueps=";
|
|
};
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
mkdir -p $out/lib
|
|
cp -r . $out/lib
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
patches = [ ./useLoadCredential.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
makeWrapper '${python.interpreter}' "$out/bin/vocard" \
|
|
--add-flags "-u ${placeholder "out"}/lib/main.py"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Vocard is a simple music bot. It leads to a comfortable experience which is user-friendly, It supports Youtube, Soundcloud, Spotify, Twitch and more";
|
|
homepage = " https://github.com/ChocoMeow/Vocard";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "vocard";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|