mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
Boot is dead, long live Boot
This commit is contained in:
parent
ac9ac9a3e3
commit
a5b0c2b27c
9 changed files with 537 additions and 27 deletions
63
packages/vocard/package.nix
Normal file
63
packages/vocard/package.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue