nixos-configs/packages/coloryou/default.nix

25 lines
536 B
Nix
Raw Normal View History

2025-02-28 22:31:17 -05:00
{python3Packages, ...}: let
inherit (builtins.fromTOML (builtins.readFile ./pyproject.toml)) project;
in
python3Packages.buildPythonPackage {
pname = project.name;
inherit (project) version;
pyproject = true;
2025-02-28 21:56:54 -05:00
2025-02-28 22:31:17 -05:00
src = ./.;
2025-02-28 21:56:54 -05:00
2025-02-28 22:31:17 -05:00
nativeBuildInputs = with python3Packages; [
setuptools
];
2025-02-28 21:56:54 -05:00
2025-02-28 22:31:17 -05:00
propagatedBuildInputs = with python3Packages; [material-color-utilities];
2025-02-28 21:56:54 -05:00
2025-02-28 22:31:17 -05:00
postInstall = ''
mv -v $out/bin/coloryou.py $out/bin/coloryou
2025-02-28 21:56:54 -05:00
'';
2025-02-28 22:31:17 -05:00
meta = {
inherit (project) description;
};
}