🎉」 init: working shitty script

This commit is contained in:
adjoly
2025-06-10 12:02:50 +02:00
commit 564df78a87
6 changed files with 355 additions and 0 deletions

58
flake.nix Normal file
View File

@ -0,0 +1,58 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
pypresence.url = "github:qwertyquerty/pypresence";
pypresence.flake = false;
};
outputs =
inputs@{ self, nixpkgs, ... }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; };
}
);
in
{
packages = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.python313Packages.buildPythonPackage {
pname = "pypresence";
version = "4.4.0"; # Replace with the actual version or a placeholder
format = "setuptools";
src = inputs.pypresence;
doCheck = false; # tests require internet connection
pythonImportsCheck = [ "pypresence" ];
};
}
);
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
packages = with pkgs; [
nixd
nixfmt-rfc-style
python313
self.packages.${pkgs.system}.default
python313Packages.icalendar
python313Packages.pytz
python313Packages.python-dotenv
python313Packages.requests
];
};
}
);
};
}