huge change
This commit is contained in:
parent
c159d2f3e3
commit
d86cc3c816
29 changed files with 1151 additions and 792 deletions
46
wallpapers/flake.nix
Normal file
46
wallpapers/flake.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
description = "Dev env for Catppuccin Mocha LUT: ImageMagick + Python (Pillow) with a generator tool";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
|
||||
# Python environment with Pillow
|
||||
pythonEnv = pkgs.python3.withPackages (ps: [ ps.pillow ]);
|
||||
|
||||
# Small helper that writes the LUT (256x1), a preview, and a palette.txt
|
||||
|
||||
in {
|
||||
# `nix develop` (or `nix-shell` via legacy) drops you into this environment
|
||||
devShells.default = pkgs.mkShell {
|
||||
packages = [
|
||||
# ImageMagick: on most channels this provides `magick` (v7). If not, you'll have `convert`.
|
||||
pkgs.imagemagick
|
||||
pythonEnv
|
||||
];
|
||||
shellHook = ''
|
||||
echo
|
||||
echo "Catppuccin Mocha dev shell ready."
|
||||
echo "Generate assets into current dir:"
|
||||
echo " make-mocha-assets ."
|
||||
echo
|
||||
'';
|
||||
};
|
||||
|
||||
# So you can also `nix run .` to execute the generator
|
||||
|
||||
apps.default = {
|
||||
type = "app";
|
||||
};
|
||||
|
||||
formatter = pkgs.nixpkgs-fmt;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue