feat: add nix flake
This commit is contained in:
55
default.nix
Normal file
55
default.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
python3Packages,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
let
|
||||
disnake = python3Packages.disnake.overrideAttrs (old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||
python3Packages.typing-extensions
|
||||
];
|
||||
});
|
||||
|
||||
disnake_paginator = python3Packages.buildPythonPackage {
|
||||
pname = "disnake-paginator";
|
||||
version = "1.0.8";
|
||||
|
||||
src = self.pins.disnake-paginator;
|
||||
|
||||
pyproject = true;
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
disnake
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
};
|
||||
in
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "errornocord";
|
||||
version = "0.1.0";
|
||||
|
||||
src = lib.cleanSource ./.;
|
||||
|
||||
pyproject = true;
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
aiohttp
|
||||
audioop-lts
|
||||
disnake
|
||||
disnake_paginator
|
||||
psutil
|
||||
typing-extensions
|
||||
youtube-transcript-api
|
||||
yt-dlp
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
}
|
||||
Reference in New Issue
Block a user