updating
This commit is contained in:
parent
6bdc450c30
commit
7f688ce99c
4 changed files with 71 additions and 72 deletions
|
|
@ -1,15 +1,23 @@
|
||||||
{ lib, python310Packages, fetchPypi }:
|
{
|
||||||
|
lib,
|
||||||
|
python310Packages,
|
||||||
|
fetchPypi,
|
||||||
|
}:
|
||||||
python310Packages.buildPythonPackage rec {
|
python310Packages.buildPythonPackage rec {
|
||||||
pname = "pymatting";
|
pname = "pymatting";
|
||||||
version = "1.1.13";
|
version = "1.1.13";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE=";
|
hash = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = with python310Packages; [
|
||||||
|
setuptools
|
||||||
|
poetry-core
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python310Packages; [
|
propagatedBuildInputs = with python310Packages; [
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
|
|
@ -17,6 +25,9 @@ python310Packages.buildPythonPackage rec {
|
||||||
numba
|
numba
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
@ -24,5 +35,6 @@ python310Packages.buildPythonPackage rec {
|
||||||
homepage = "https://github.com/pymatting/pymatting";
|
homepage = "https://github.com/pymatting/pymatting";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
maintainers = with maintainers; [ "Cobray" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,23 +7,23 @@
|
||||||
python310Packages.buildPythonPackage rec {
|
python310Packages.buildPythonPackage rec {
|
||||||
pname = "rembg";
|
pname = "rembg";
|
||||||
version = "2.0.50";
|
version = "2.0.50";
|
||||||
format = "setuptools";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0dgq291bj4w6jkcyz7lvp1vba2nczfnmxa2acl2sqib5p8cpzjvc";
|
hash = "sha256-kW0MBDvIpL2Yc2n8zZ7Luw2na0qAczfORz2o6Y5YfkM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with python310Packages; [
|
nativeBuildInputs = with python310Packages; [
|
||||||
setuptools
|
|
||||||
poetry-core
|
poetry-core
|
||||||
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = with python310Packages; [
|
propagatedBuildInputs = with python310Packages; [
|
||||||
numpy
|
numpy
|
||||||
pillow
|
pillow
|
||||||
onnxruntime
|
onnxruntime
|
||||||
opencv4
|
opencv-python
|
||||||
requests
|
requests
|
||||||
aiohttp
|
aiohttp
|
||||||
asynctest
|
asynctest
|
||||||
|
|
@ -37,6 +37,9 @@ python310Packages.buildPythonPackage rec {
|
||||||
tqdm
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
||||||
|
|
@ -3,62 +3,37 @@
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
gtk-engine-murrine,
|
gtk-engine-murrine,
|
||||||
gtk_engines,
|
gnome-themes-extra,
|
||||||
bash,
|
bash,
|
||||||
sassc,
|
sassc,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "tokyo-night-gtk";
|
pname = "tokyo-night-gtk";
|
||||||
version = "2025-03-16";
|
version = "main";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Fausto-Korpsvart";
|
owner = "Fausto-Korpsvart";
|
||||||
repo = "Tokyo-Night-GTK-Theme";
|
repo = "Tokyonight-GTK-Theme";
|
||||||
rev = "4dc45d60bf35f50ebd9ee41f16ab63783f80dd64";
|
rev = "4dc45d60bf35f50ebd9ee41f16ab63783f80dd64";
|
||||||
sha256 = "0c7sp9n2pc70yy9msmbmcyhqbr63v1ssnsxk6vg10zwwc3wl19h0";
|
sha256 = "0c7sp9n2pc70yy9msmbmcyhqbr63v1ssnsxk6vg10zwwc3wl19h0";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [bash sassc];
|
nativeBuildInputs = [bash sassc];
|
||||||
buildInputs = [gtk-engine-murrine gtk_engines];
|
buildInputs = [gtk-engine-murrine gnome-themes-extra];
|
||||||
propagatedUserEnvPkgs = [gtk-engine-murrine];
|
propagatedUserEnvPkgs = [gtk-engine-murrine];
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
cd themes
|
|
||||||
substituteInPlace install.sh \
|
|
||||||
--replace-fail 'if [ "$UID" -eq "$ROOT_UID" ]; then' 'if false; then' \
|
|
||||||
--replace-fail 'DEST_DIR="/usr/share/themes"' 'DEST_DIR="$TMPDIR/.themes"' \
|
|
||||||
--replace-fail 'DEST_DIR="$HOME/.themes"' 'DEST_DIR="$TMPDIR/.themes"'
|
|
||||||
substituteInPlace install.sh \
|
|
||||||
--replace-fail 'if [[ "$(command -v gnome-shell)" ]]; then' 'if false; then' \
|
|
||||||
--replace-fail 'if has_command xfce4-popup-whiskermen; then' 'if false; then' \
|
|
||||||
--replace-fail 'if (pgrep xfce4-session &>/dev/null); then' 'if false; then'
|
|
||||||
'';
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$TMPDIR
|
bash ./install.sh --dest $out/share/themes -n Tokyonight
|
||||||
mkdir -p $TMPDIR/.themes
|
bash ./install.sh --dest $out/share/themes -n Tokyonight --tweaks storm
|
||||||
bash ./install.sh -n Tokyonight
|
bash ./install.sh --dest $out/share/themes -n Tokyonight --tweaks storm black
|
||||||
bash ./install.sh -n Tokyonight --tweaks storm
|
bash ./install.sh --dest $out/share/themes -n Tokyonight --tweaks storm black outline
|
||||||
bash ./install.sh -n Tokyonight --tweaks storm black
|
|
||||||
bash ./install.sh -n Tokyonight --tweaks storm black outline
|
|
||||||
echo "Created themes:"
|
|
||||||
ls -la $TMPDIR/.themes/
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = "";
|
||||||
mkdir -p $out/share/themes
|
|
||||||
for theme in $TMPDIR/.themes/*; do
|
|
||||||
if [ -d "$theme" ]; then
|
|
||||||
themeBase=$(basename "$theme")
|
|
||||||
cp -r "$theme" "$out/share/themes/"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "Installed themes:"
|
|
||||||
ls -la $out/share/themes/
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tokyo Night GTK Theme";
|
description = "Tokyo Night GTK Theme";
|
||||||
homepage = "https://github.com/Fausto-Korpsvart/Tokyo-Night-GTK-Theme";
|
homepage = "https://github.com/Fausto-Korpsvart/Tokyonight-GTK-Theme";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = ["Cobray"];
|
maintainers = ["Cobray"];
|
||||||
|
|
|
||||||
|
|
@ -6,47 +6,56 @@
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "vivid-icons";
|
pname = "vivid-icons";
|
||||||
version = "2025-03-16";
|
version = "unstable-${builtins.substring 0 7 "fe8b8f1bdd3784dc838c125bb9e1b2d713f40e67"}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "L4ki";
|
owner = "L4ki";
|
||||||
repo = "Vivid-Plasma-Themes";
|
repo = "Vivid-Plasma-Themes";
|
||||||
rev = "fe8b8f1bdd3784dc838c125bb9e1b2d713f40e67";
|
rev = "fe8b8f1bdd3784dc838c125bb9e1b2d713f40e67";
|
||||||
sha256 = "1rcphy08r6337gbp98nz00mj780jn9kwm40ngd9pxnlvwp2n8mjj";
|
hash = "sha256-X6NPEIhjYzf2mYOYnDADJ4A5nJ6T4HTRnF5Y9vKNIrw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ hicolor-icon-theme ];
|
buildInputs = [ hicolor-icon-theme ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
cp -r "Vivid Icons Themes/"* $out/share/icons/
|
|
||||||
for theme in $out/share/icons/*; do
|
for dir in Vivid-Icons-*; do
|
||||||
if [ -d "$theme" ]; then
|
if [ -d "$dir" ]; then
|
||||||
echo "Processing theme: $theme"
|
theme_name=$(basename "$dir")
|
||||||
cat > "$theme/index.theme" <<EOF
|
dest_dir="$out/share/icons/$theme_name"
|
||||||
[Icon Theme]
|
cp -r "$dir" "$dest_dir"
|
||||||
Name=$(basename "$theme")
|
|
||||||
Comment=$(basename "$theme") icons
|
echo "[Icon Theme]" > "$dest_dir/index.theme"
|
||||||
Inherits=hicolor
|
echo "Name=$theme_name" >> "$dest_dir/index.theme"
|
||||||
Directories=8x8,16x16,22x22
|
echo "Comment=$theme_name icons" >> "$dest_dir/index.theme"
|
||||||
[8x8]
|
echo "Inherits=hicolor" >> "$dest_dir/index.theme"
|
||||||
Size=8
|
directories=""
|
||||||
Context=Emblems
|
for size_dir in "$dest_dir"/*; do
|
||||||
Type=Fixed
|
if [ -d "$size_dir" ]; then
|
||||||
[16x16]
|
size=$(basename "$size_dir")
|
||||||
Size=16
|
if [[ "$size" =~ ^[0-9]+x[0-9]+$ ]]; then
|
||||||
Context=Actions
|
directories="$directories''${directories:+,}$size"
|
||||||
Type=Fixed
|
echo "[$size]" >> "$dest_dir/index.theme"
|
||||||
[22x22]
|
echo "Size=''${size%%x*}" >> "$dest_dir/index.theme"
|
||||||
Size=22
|
echo "Context=Actions" >> "$dest_dir/index.theme"
|
||||||
Context=Actions
|
echo "Type=Fixed" >> "$dest_dir/index.theme"
|
||||||
Type=Fixed
|
fi
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
echo "Directories=$directories" >> "$dest_dir/index.theme"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Installed themes:"
|
||||||
|
ls -la $out/share/icons/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Vivid Icons Theme";
|
description = "Vivid Icons Theme";
|
||||||
homepage = "https://github.com/L4ki/Vivid-Plasma-Themes";
|
homepage = "https://github.com/L4ki/Vivid-Plasma-Themes";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = ["Cobray"];
|
maintainers = with maintainers; [ "Cobray" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue