add ftw to config

This commit is contained in:
Tyler Starr 2024-10-20 00:21:05 -07:00
parent 0a98774112
commit 4ac287d887
3 changed files with 37 additions and 0 deletions

View File

@ -36,6 +36,7 @@ in {
gnome-fullscreen-to-empty-workspace
gnome-set-panel-monitor
gnome-randr
ftw
];
environment.gnome.excludePackages = with pkgs; [

View File

@ -9,4 +9,5 @@ final: prev: {
gnome-fullscreen-to-empty-workspace = final.callPackage ../pkgs/gnome-fullscreen-to-empty-workspace.nix {};
ryujinx = final.callPackage ../pkgs/ryujinx/default.nix {};
pySVS = final.callPackage ../pkgs/pySVS.nix {};
ftw = final.callPackage ../pkgs/ftw.nix {};
}

35
provision/pkgs/ftw.nix Normal file
View File

@ -0,0 +1,35 @@
{ lib, stdenv, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
pname = "ftw";
version = "0.0.1";
src = fetchFromGitHub {
owner = "starr-dusT";
repo = "ftw";
rev = "4a4ed10d3913028e2d97e9ab079401b8e948e088";
sha256 = "sha256-Gxt895JQAopfdQ0XawKnZP06Wy4KJQhsbH4Aa8+ZSS4=";
};
format = "pyproject";
propagatedBuildInputs = with python3Packages; [
numpy
wand
setuptools
];
# There are no tests
doCheck = false;
postInstall = ''
cp -R "$src/ftw/res" "$out/lib/python3.12/site-packages/ftw"
'';
meta = with lib; {
homepage = "https://github.com/starr-dusT/ftw";
description = "Build custom ftl wallpapers in a complicated way for no reason";
mainProgram = "ftw";
maintainers = [ maintainers.starr-dusT ];
};
}