2021-07-14 19:30:21 +03:00
|
|
|
{
|
|
|
|
description = "A colorful wallpaper generator";
|
|
|
|
|
2021-07-15 10:43:43 +03:00
|
|
|
nixConfig.bash-prompt = "\[\\e[1m\\e[34mhuepaper-dev\\e[0m:\\w\]$ ";
|
2021-07-14 19:30:21 +03:00
|
|
|
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
|
|
|
|
flake-utils.lib.eachDefaultSystem
|
|
|
|
(system:
|
|
|
|
let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
|
|
|
|
# Package
|
|
|
|
packages.huepaper =
|
|
|
|
pkgs.python3Packages.buildPythonPackage rec {
|
|
|
|
name = "huepaper";
|
|
|
|
src = self;
|
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
|
|
python3Packages.colour
|
2021-11-22 16:03:14 +02:00
|
|
|
python3Packages.numpy
|
2021-07-14 19:30:21 +03:00
|
|
|
python3Packages.pillow
|
|
|
|
];
|
|
|
|
};
|
|
|
|
defaultPackage = self.packages.${system}.huepaper;
|
|
|
|
|
2021-07-15 10:43:43 +03:00
|
|
|
# App
|
|
|
|
apps.huepaper = {
|
|
|
|
type = "app";
|
|
|
|
program = "${self.packages.${system}.huepaper}/bin/huepaper";
|
|
|
|
};
|
|
|
|
defaultApp = self.apps.${system}.huepaper;
|
2021-07-14 19:30:21 +03:00
|
|
|
|
2021-07-15 10:43:43 +03:00
|
|
|
# Development shell
|
2021-07-14 19:30:21 +03:00
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
python3
|
|
|
|
python3Packages.colour
|
2021-11-22 16:03:14 +02:00
|
|
|
python3Packages.numpy
|
2021-07-14 19:30:21 +03:00
|
|
|
python3Packages.pillow
|
|
|
|
python3Packages.pip
|
|
|
|
python3Packages.setuptools
|
|
|
|
python3Packages.virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|