auto lint

This commit is contained in:
alsaiduq-lab 2025-03-17 16:10:17 -06:00
parent a765516271
commit 6a9932451c
35 changed files with 262 additions and 205 deletions

View file

@ -1,11 +1,12 @@
{ pkgs ? import <nixpkgs> {}, lib ? pkgs.lib }:
let
{
pkgs ? import <nixpkgs> {},
lib ? pkgs.lib,
}: let
python-pymatting = pkgs.callPackage ./python-pymatting {
inherit (pkgs) lib fetchPypi;
python310Packages = pkgs.python310.pkgs;
};
in
{
in {
fish-rust = pkgs.callPackage ./fish-rust {};
python-pymatting = python-pymatting;
python-rembg = pkgs.callPackage ./python-rembg {

View file

@ -1,5 +1,11 @@
{ lib, rustPlatform, fetchgit, ncurses, python3Packages, gettext }:
{
lib,
rustPlatform,
fetchgit,
ncurses,
python3Packages,
gettext,
}:
rustPlatform.buildRustPackage rec {
pname = "fish";
version = "4.1-2025-03-16-rust";
@ -19,7 +25,7 @@ rustPlatform.buildRustPackage rec {
};
};
buildInputs = [ ncurses gettext ];
buildInputs = [ncurses gettext];
nativeBuildInputs = with python3Packages; [
sphinx
sphinx_rtd_theme

View file

@ -7,7 +7,7 @@ python310Packages.buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE="; # Updated hash
sha256 = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE=";
};
propagatedBuildInputs = with python310Packages; [

View file

@ -1,5 +1,9 @@
{ lib, python310Packages, fetchPypi, python-pymatting }:
{
lib,
python310Packages,
fetchPypi,
python-pymatting,
}:
python310Packages.buildPythonPackage rec {
pname = "rembg";
version = "2.0.50";
@ -40,6 +44,6 @@ python310Packages.buildPythonPackage rec {
homepage = "https://github.com/danielgatis/rembg";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ "Cobray" ];
maintainers = with maintainers; ["Cobray"];
};
}

View file

@ -1,5 +1,12 @@
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, gtk_engines, bash, sassc }:
{
lib,
stdenv,
fetchFromGitHub,
gtk-engine-murrine,
gtk_engines,
bash,
sassc,
}:
stdenv.mkDerivation {
pname = "tokyo-night-gtk";
version = "2025-03-16";
@ -11,9 +18,9 @@ stdenv.mkDerivation {
sha256 = "0c7sp9n2pc70yy9msmbmcyhqbr63v1ssnsxk6vg10zwwc3wl19h0";
};
nativeBuildInputs = [ bash sassc ];
buildInputs = [ gtk-engine-murrine gtk_engines ];
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
nativeBuildInputs = [bash sassc];
buildInputs = [gtk-engine-murrine gtk_engines];
propagatedUserEnvPkgs = [gtk-engine-murrine];
patchPhase = ''
cd themes
@ -54,6 +61,6 @@ stdenv.mkDerivation {
homepage = "https://github.com/Fausto-Korpsvart/Tokyo-Night-GTK-Theme";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ "Cobray" ];
maintainers = ["Cobray"];
};
}

View file

@ -1,4 +1,9 @@
{ lib, stdenv, fetchFromGitHub, hicolor-icon-theme }:
{
lib,
stdenv,
fetchFromGitHub,
hicolor-icon-theme,
}:
stdenv.mkDerivation rec {
pname = "vivid-icons";
version = "2025-03-16";
@ -8,40 +13,40 @@ stdenv.mkDerivation rec {
rev = "fe8b8f1bdd3784dc838c125bb9e1b2d713f40e67";
sha256 = "1rcphy08r6337gbp98nz00mj780jn9kwm40ngd9pxnlvwp2n8mjj";
};
buildInputs = [ hicolor-icon-theme ];
buildInputs = [hicolor-icon-theme];
installPhase = ''
mkdir -p $out/share/icons
cp -r "Vivid Icons Themes/"* $out/share/icons/
for theme in $out/share/icons/*; do
if [ -d "$theme" ]; then
echo "Processing theme: $theme"
cat > "$theme/index.theme" <<EOF
[Icon Theme]
Name=$(basename "$theme")
Comment=$(basename "$theme") icons
Inherits=hicolor
Directories=8x8,16x16,22x22
[8x8]
Size=8
Context=Emblems
Type=Fixed
[16x16]
Size=16
Context=Actions
Type=Fixed
[22x22]
Size=22
Context=Actions
Type=Fixed
EOF
fi
done
mkdir -p $out/share/icons
cp -r "Vivid Icons Themes/"* $out/share/icons/
for theme in $out/share/icons/*; do
if [ -d "$theme" ]; then
echo "Processing theme: $theme"
cat > "$theme/index.theme" <<EOF
[Icon Theme]
Name=$(basename "$theme")
Comment=$(basename "$theme") icons
Inherits=hicolor
Directories=8x8,16x16,22x22
[8x8]
Size=8
Context=Emblems
Type=Fixed
[16x16]
Size=16
Context=Actions
Type=Fixed
[22x22]
Size=22
Context=Actions
Type=Fixed
EOF
fi
done
'';
meta = with lib; {
description = "Vivid Icons Theme";
homepage = "https://github.com/L4ki/Vivid-Plasma-Themes";
license = licenses.gpl3;
platforms = platforms.all;
maintainers = [ "Cobray" ];
maintainers = ["Cobray"];
};
}