Boot is dead, long live Boot

This commit is contained in:
Gerg-L 2025-02-06 12:09:22 -05:00
parent ac9ac9a3e3
commit a5b0c2b27c
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
9 changed files with 537 additions and 27 deletions

View file

@ -0,0 +1,63 @@
{
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 = [ ./use_cwd.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;
};
}