update flake and setup scheme
This commit is contained in:
parent
25ef32dbbb
commit
94b8d29d43
21
flake.nix
21
flake.nix
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
description = "A colorful wallpaper generator";
|
description = "A colorful wallpaper generator";
|
||||||
|
|
||||||
nixConfig.bash-prompt = "\[\\e[1m\\e[34mhuepaper-develop\\e[0m\]$ ";
|
nixConfig.bash-prompt = "\[\\e[1m\\e[34mhuepaper-dev\\e[0m:\\w\]$ ";
|
||||||
|
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
|
||||||
@ -15,31 +15,26 @@
|
|||||||
{
|
{
|
||||||
|
|
||||||
# Package
|
# Package
|
||||||
|
|
||||||
packages.huepaper =
|
packages.huepaper =
|
||||||
|
|
||||||
pkgs.python3Packages.buildPythonPackage rec {
|
pkgs.python3Packages.buildPythonPackage rec {
|
||||||
|
|
||||||
name = "huepaper";
|
name = "huepaper";
|
||||||
src = self;
|
src = self;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
wrapGAppsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with pkgs; [
|
propagatedBuildInputs = with pkgs; [
|
||||||
python3Packages.colour
|
python3Packages.colour
|
||||||
python3Packages.pillow
|
python3Packages.pillow
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultPackage = self.packages.${system}.huepaper;
|
defaultPackage = self.packages.${system}.huepaper;
|
||||||
|
|
||||||
|
# App
|
||||||
|
apps.huepaper = {
|
||||||
|
type = "app";
|
||||||
|
program = "${self.packages.${system}.huepaper}/bin/huepaper";
|
||||||
|
};
|
||||||
|
defaultApp = self.apps.${system}.huepaper;
|
||||||
|
|
||||||
# Development shell
|
# Development shell
|
||||||
|
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
python3
|
python3
|
||||||
python3Packages.colour
|
python3Packages.colour
|
||||||
|
@ -10,7 +10,6 @@ from huepaper import (
|
|||||||
save_image,
|
save_image,
|
||||||
)
|
)
|
||||||
import argparse
|
import argparse
|
||||||
import os.path
|
|
||||||
|
|
||||||
|
|
||||||
def print_greeter():
|
def print_greeter():
|
Loading…
Reference in New Issue
Block a user