uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/data/icons/arc-icon-theme/default.nix
Normal file
38
pkgs/data/icons/arc-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gtk3, gnome, moka-icon-theme, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "arc-icon-theme";
|
||||
version = "2016-11-22";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "horst3180";
|
||||
repo = pname;
|
||||
rev = "55a575386a412544c3ed2b5617a61f842ee4ec15";
|
||||
sha256 = "1ch3hp08qri93510hypzz6m2x4xgg2h15wvnhjwh1x1s1b7jvxjd";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
moka-icon-theme
|
||||
gnome.adwaita-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postFixup = "gtk-update-icon-cache $out/share/icons/Arc";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Arc icon theme";
|
||||
homepage = "https://github.com/horst3180/arc-icon-theme";
|
||||
license = licenses.gpl3;
|
||||
# moka-icon-theme dependency is restricted to linux
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
39
pkgs/data/icons/beauty-line-icon-theme/default.nix
Normal file
39
pkgs/data/icons/beauty-line-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ lib, stdenv, fetchzip, breeze-icons, gtk3, gnome-icon-theme, hicolor-icon-theme, mint-x-icons, pantheon }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "BeautyLine";
|
||||
version = "0.0.1";
|
||||
|
||||
src = fetchzip {
|
||||
name = "${pname}-${version}";
|
||||
url = "https://github.com/gvolpe/BeautyLine/releases/download/${version}/BeautyLine.tar.gz";
|
||||
sha256 = "030bjk333fr9wm1nc740q8i31rfsgf3vg6cvz36xnvavx3q363l7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
# ubuntu-mono is also required but missing in ubuntu-themes (please add it if it is packaged at some point)
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
mint-x-icons
|
||||
pantheon.elementary-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons/${pname}
|
||||
cp -r * $out/share/icons/${pname}/
|
||||
gtk-update-icon-cache $out/share/icons/${pname}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "BeautyLine icon theme";
|
||||
homepage = "https://www.gnome-look.org/p/1425426/";
|
||||
platforms = platforms.linux;
|
||||
license = [ licenses.publicDomain ];
|
||||
maintainers = with maintainers; [ gvolpe ];
|
||||
};
|
||||
}
|
||||
54
pkgs/data/icons/bibata-cursors/default.nix
Normal file
54
pkgs/data/icons/bibata-cursors/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, clickgen
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bibata-cursors";
|
||||
version = "1.1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ful1e5";
|
||||
repo = "Bibata_Cursor";
|
||||
rev = "v${version}";
|
||||
sha256 = "1q2wdbrmdnr9mwiilm5cc9im3zwbl7yaj1zpy5wwn44ypq3hcngy";
|
||||
};
|
||||
|
||||
bitmaps = fetchurl {
|
||||
url = "https://github.com/ful1e5/Bibata_Cursor/releases/download/v${version}/bitmaps.zip";
|
||||
sha256 = "1pcn6par0f0syyhzpzmqr3c6b9ri4lprkdd2ncwzdas01p2d9v1i";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
buildInputs = [ clickgen ];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir bitmaps
|
||||
unzip $bitmaps -d bitmaps
|
||||
rm -rf themes
|
||||
cd builder && make build_unix
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -dm 0755 $out/share/icons
|
||||
cd ../
|
||||
cp -rf themes/* $out/share/icons/
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace "builder/Makefile" \
|
||||
--replace "/bin/bash" "bash"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Material Based Cursor Theme";
|
||||
homepage = "https://github.com/ful1e5/Bibata_Cursor";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ rawkode AdsonCicilioti ];
|
||||
};
|
||||
}
|
||||
54
pkgs/data/icons/bibata-cursors/extra.nix
Normal file
54
pkgs/data/icons/bibata-cursors/extra.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, fetchurl
|
||||
, clickgen
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bibata-extra-cursors";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ful1e5";
|
||||
repo = "Bibata_Extra_Cursor";
|
||||
rev = "v${version}";
|
||||
sha256 = "0wndl4c547k99y0gq922hn7z1mwdgxvvyjfm6757g6shfbcmkz7m";
|
||||
};
|
||||
|
||||
bitmaps = fetchurl {
|
||||
url = "https://github.com/ful1e5/Bibata_Extra_Cursor/releases/download/v${version}/bitmaps.zip";
|
||||
sha256 = "0vf14ln53wigaq3dkqdk5avarqplsq751nlv72da04ms6gqjfhdl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ unzip ];
|
||||
|
||||
buildInputs = [ clickgen ];
|
||||
|
||||
buildPhase = ''
|
||||
mkdir bitmaps
|
||||
unzip $bitmaps -d bitmaps
|
||||
rm -rf themes
|
||||
cd builder && make build_unix
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -dm 0755 $out/share/icons
|
||||
cd ../
|
||||
cp -rf themes/* $out/share/icons/
|
||||
'';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace "builder/Makefile" \
|
||||
--replace "/bin/bash" "bash"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Material Based Cursor Theme";
|
||||
homepage = "https://github.com/ful1e5/Bibata_Extra_Cursor";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ dtzWill AdsonCicilioti ];
|
||||
};
|
||||
}
|
||||
26
pkgs/data/icons/bibata-cursors/translucent.nix
Normal file
26
pkgs/data/icons/bibata-cursors/translucent.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bibata-cursors-translucent";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Silicasandwhich";
|
||||
repo = "Bibata_Cursor_Translucent";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ddnwqkxricnd731blckcxvksbgql8k4pfiz65591p81n5095k8y";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
install -dm 0755 $out/share/icons
|
||||
cp -pr Bibata_* $out/share/icons/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Translucent Varient of the Material Based Cursor";
|
||||
homepage = "https://github.com/Silicasandwhich/Bibata_Cursor_Translucent";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ dtzWill AdsonCicilioti ];
|
||||
};
|
||||
}
|
||||
57
pkgs/data/icons/capitaine-cursors/default.nix
Normal file
57
pkgs/data/icons/capitaine-cursors/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeFontsConf
|
||||
, inkscape, xcursorgen, bc }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "capitaine-cursors";
|
||||
version = "4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keeferrourke";
|
||||
repo = pname;
|
||||
rev = "r${version}";
|
||||
sha256 = "0652ydy73x29z7wc6ccyqihmfg4bk0ksl7yryycln6c7i0iqfmc9";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fixes the build on inscape => 1.0, without this it generates empty cursor files
|
||||
(fetchpatch {
|
||||
name = "inkscape-1.0-compat";
|
||||
url = "https://github.com/keeferrourke/capitaine-cursors/commit/9da0b53e6098ed023c5c24c6ef6bfb1f68a79924.patch";
|
||||
sha256 = "0lx5i60ahy6a2pir4zzlqn5lqsv6claqg8mv17l1a028h9aha3cv";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
# Complains about not being able to find the fontconfig config file otherwise
|
||||
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; };
|
||||
|
||||
buildInputs = [
|
||||
inkscape
|
||||
xcursorgen
|
||||
bc
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
for variant in dark light ; do
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/data/fonts/emojione/default.nix#L16
|
||||
HOME="$NIX_BUILD_ROOT" ./build.sh --max-dpi xhd --type $variant
|
||||
done
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -dm 0755 $out/share/icons
|
||||
cp -pr dist/dark $out/share/icons/capitaine-cursors
|
||||
cp -pr dist/light $out/share/icons/capitaine-cursors-white
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An x-cursor theme inspired by macOS and based on KDE Breeze";
|
||||
homepage = "https://github.com/keeferrourke/capitaine-cursors";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ eadwu ];
|
||||
};
|
||||
}
|
||||
105
pkgs/data/icons/comixcursors/default.nix
Normal file
105
pkgs/data/icons/comixcursors/default.nix
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
{ lib, stdenv, fetchFromGitLab, bc, librsvg, xcursorgen }:
|
||||
|
||||
let
|
||||
dimensions = {
|
||||
color = [ "Black" "Blue" "Green" "Orange" "Red" "White" ];
|
||||
opacity = [ "" "Opaque_" ]; # Translucent or opaque.
|
||||
thickness = [ "" "Slim_" ]; # Thick or slim edges.
|
||||
handedness = [ "" "LH_" ]; # Right- or left-handed.
|
||||
};
|
||||
product = lib.cartesianProductOfSets dimensions;
|
||||
variantName =
|
||||
{ color, opacity, thickness, handedness }:
|
||||
"${handedness}${opacity}${thickness}${color}";
|
||||
variants =
|
||||
# (The order of this list is already good looking enough to show in the
|
||||
# meta.longDescription.)
|
||||
map variantName product;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "comixcursors";
|
||||
version = "0.9.2";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "limitland";
|
||||
repo = "comixcursors";
|
||||
# https://gitlab.com/limitland/comixcursors/-/issues/3
|
||||
rev = "8c327c8514ab3a352583605c1ddcb7eb3d1d302b";
|
||||
sha256 = "0bpxqw4izj7m0zb9lnxnmsjicfw60ppkdyv5nwrrz4x865wb296a";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bc librsvg xcursorgen ];
|
||||
|
||||
patches = [ ./makefile-shell-var.patch ];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs ./install-all ./bin/
|
||||
'';
|
||||
|
||||
# install-all is used instead of the directions in upstream's INSTALL file,
|
||||
# because using its Makefile directly is broken. Upstream itself seems to use
|
||||
# its build-distribution script instead, which also uses install-all, but we
|
||||
# do not use it because it does extra things for other distros.
|
||||
#
|
||||
# When not all of the variants, i.e. only a smaller subset of them, are
|
||||
# desired (i.e. when a subset of outputs are chosen), install-all will still
|
||||
# build all of them. While upstream appears to provide old functionality for
|
||||
# building only a subset, it is broken and we do not use it. With prebuilt
|
||||
# substitutions, installers of this package will get only the outputs they
|
||||
# chose.
|
||||
buildPhase = ''
|
||||
ICONSDIR=$TMP/staged ./install-all
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
for outputName in $outputs ; do
|
||||
if [ $outputName != out ]; then
|
||||
local outputDir=''${!outputName};
|
||||
local iconsDir=$outputDir/share/icons
|
||||
local cursorName=$(tr _ - <<<"$outputName")
|
||||
|
||||
mkdir -p $iconsDir
|
||||
cp -r -d $TMP/staged/ComixCursors-$cursorName $iconsDir
|
||||
|
||||
unset outputDir iconsDir cursorName
|
||||
fi
|
||||
done
|
||||
|
||||
# Need this directory (empty) to prevent the builder scripts from breaking.
|
||||
mkdir -p $out
|
||||
'';
|
||||
|
||||
outputs = let
|
||||
default = "Opaque_Black";
|
||||
in
|
||||
# Have the most-traditional variant be the default output (as the first).
|
||||
# Even with outputsToInstall=[], the default/first still has an effect on
|
||||
# some Nix tools (e.g. nix-build).
|
||||
[ default ] ++ (lib.remove default variants)
|
||||
# Need a dummy "out" output to prevent the builder scripts from breaking.
|
||||
++ [ "out" ];
|
||||
|
||||
# No default output (to the extent possible). Instead, the outputs'
|
||||
# attributes are used to choose which variant(s) to have.
|
||||
outputsToInstall = [];
|
||||
|
||||
meta = with lib; {
|
||||
description = "The Comix Cursors mouse themes";
|
||||
longDescription = ''
|
||||
There are many (${toString ((length outputs) - 1)}) variants of color,
|
||||
opacity, edge thickness, and right- or left-handedness, for this cursor
|
||||
theme. This package's derivation has an output for each of these
|
||||
variants, named following the upstream convention, and the attribute for
|
||||
an output must be used to install a variant,
|
||||
e.g. `comixcursors.LH_Opaque_Slim_Blue`. Attempting to use only
|
||||
`comixcursors`, i.e. without an output attribute, will not install any
|
||||
variants. To install all the variants, use `comixcursors.all` (which is a
|
||||
list).
|
||||
'';
|
||||
homepage = "https://gitlab.com/limitland/comixcursors";
|
||||
changelog = "https://gitlab.com/limitland/comixcursors/-/blob/HEAD/NEWS";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = [ maintainers.DerickEddington ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
11
pkgs/data/icons/comixcursors/makefile-shell-var.patch
Normal file
11
pkgs/data/icons/comixcursors/makefile-shell-var.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -22,8 +22,6 @@
|
||||
|
||||
# Makefile for ComixCursors project.
|
||||
|
||||
-SHELL = /bin/bash
|
||||
-
|
||||
CURSORSNAME = ComixCursors
|
||||
PACKAGENAME ?= ${CURSORSNAME}
|
||||
SUMMARY ?= The original Comix Cursors
|
||||
47
pkgs/data/icons/elementary-xfce-icon-theme/default.nix
Normal file
47
pkgs/data/icons/elementary-xfce-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, gdk-pixbuf, optipng, librsvg, gtk3, pantheon, gnome, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "elementary-xfce-icon-theme";
|
||||
version = "0.16";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "shimmerproject";
|
||||
repo = "elementary-xfce";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-p6HQhYf+rw3obrc6e5lYqC02i4dK+5eXGwnTJj0+D+k=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gdk-pixbuf
|
||||
librsvg
|
||||
optipng
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pantheon.elementary-icon-theme
|
||||
gnome.adwaita-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace svgtopng/Makefile --replace "-O0" "-O"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
make icon-caches
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Elementary icons for Xfce and other GTK desktops like GNOME";
|
||||
homepage = "https://github.com/shimmerproject/elementary-xfce";
|
||||
license = licenses.gpl2;
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ] ++ teams.xfce.members;
|
||||
};
|
||||
}
|
||||
40
pkgs/data/icons/faba-icon-theme/default.nix
Normal file
40
pkgs/data/icons/faba-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, stdenv, fetchFromGitHub, meson, ninja, python3, gtk3, pantheon, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "faba-icon-theme";
|
||||
version = "4.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "moka-project";
|
||||
repo = "faba-icon-theme";
|
||||
rev = "v${version}";
|
||||
sha256 = "0xh6ppr73p76z60ym49b4d0liwdc96w41cc5p07d48hxjsa6qd6n";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
python3
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pantheon.elementary-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs meson/post_install.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A sexy and modern icon theme with Tango influences";
|
||||
homepage = "https://snwh.org/moka";
|
||||
license = with licenses; [ cc-by-sa-40 gpl3 ];
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
42
pkgs/data/icons/faba-mono-icons/default.nix
Normal file
42
pkgs/data/icons/faba-mono-icons/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gtk3, moka-icon-theme, faba-icon-theme, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "faba-mono-icons";
|
||||
version = "2016-04-30";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snwh";
|
||||
repo = pname;
|
||||
rev = "2006c5281eb988c799068734f289a85443800cda";
|
||||
sha256 = "0nisfl92y6hrbakp9qxi0ygayl6avkzrhwirg6854bwqjy2dvjv9";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
moka-icon-theme
|
||||
faba-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postInstall = ''
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The full set of Faba monochrome panel icons";
|
||||
homepage = "https://snwh.org/moka";
|
||||
license = licenses.gpl3;
|
||||
# moka-icon-theme dependency is restricted to linux
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
44
pkgs/data/icons/flat-remix-icon-theme/default.nix
Normal file
44
pkgs/data/icons/flat-remix-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, breeze-icons, pantheon, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "flat-remix-icon-theme";
|
||||
version = "20220304";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "daniruiz";
|
||||
repo = "flat-remix";
|
||||
rev = version;
|
||||
sha256 = "sha256-SE3e3lPGLw6gONVQD8Joj6KNnXC/UygT0fy0AgH8us8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
pantheon.elementary-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
mv Flat-Remix* $out/share/icons/
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flat remix is a pretty simple icon theme inspired on material design";
|
||||
homepage = "https://drasite.com/flat-remix";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
# breeze-icons and pantheon.elementary-icon-theme dependencies are restricted to linux
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mschneider ];
|
||||
};
|
||||
}
|
||||
34
pkgs/data/icons/gnome-icon-theme/default.nix
Normal file
34
pkgs/data/icons/gnome-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, pkg-config, intltool, iconnamingutils, gtk2 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gnome-icon-theme";
|
||||
version = "3.12.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/gnome-icon-theme/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0fjh9qmmgj34zlgxb09231ld7khys562qxbpsjlaplq2j85p57im";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
intltool
|
||||
iconnamingutils
|
||||
gtk2
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postInstall = ''
|
||||
# remove a tree of dirs with no files within
|
||||
rm -r "$out/share/locale"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of icons for the GNOME 2 desktop";
|
||||
homepage = "https://download.gnome.org/sources/gnome-icon-theme/";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/gnome-icon-theme.x86_64-darwin
|
||||
};
|
||||
}
|
||||
34
pkgs/data/icons/gruvbox-dark-icons-gtk/default.nix
Normal file
34
pkgs/data/icons/gruvbox-dark-icons-gtk/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gruvbox-dark-icons-gtk";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jmattheis";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1fks2rrrb62ybzn8gqan5swcgksrb579vk37bx4xpwkc552dz2z2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ breeze-icons gnome-icon-theme hicolor-icon-theme ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons/oomox-gruvbox-dark
|
||||
rm README.md
|
||||
cp -r * $out/share/icons/oomox-gruvbox-dark
|
||||
gtk-update-icon-cache $out/share/icons/oomox-gruvbox-dark
|
||||
'';
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gruvbox icons for GTK based desktop environments";
|
||||
homepage = "https://github.com/jmattheis/gruvbox-dark-gtk";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.nomisiv ];
|
||||
};
|
||||
}
|
||||
19
pkgs/data/icons/hicolor-icon-theme/default.nix
Normal file
19
pkgs/data/icons/hicolor-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hicolor-icon-theme";
|
||||
version = "0.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://icon-theme.freedesktop.org/releases/hicolor-icon-theme-${version}.tar.xz";
|
||||
sha256 = "1n59i3al3zx6p90ff0l43gzpzmlqnzm6hf5cryxqrlbi48sq8x1i";
|
||||
};
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Default fallback theme used by implementations of the icon theme specification";
|
||||
homepage = "https://icon-theme.freedesktop.org/releases/";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
53
pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
Normal file
53
pkgs/data/icons/hicolor-icon-theme/setup-hook.sh
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
# shellcheck shell=bash
|
||||
|
||||
# Populate XDG_ICON_DIRS
|
||||
hicolorIconThemeHook() {
|
||||
|
||||
# where to find icon themes
|
||||
if [ -d "$1/share/icons" ]; then
|
||||
addToSearchPath XDG_ICON_DIRS "$1/share"
|
||||
fi
|
||||
}
|
||||
|
||||
# I think this is meant to be a runtime dep
|
||||
addEnvHooks "${targetOffset:?}" hicolorIconThemeHook
|
||||
|
||||
# Make symbolic links of parent icon themes that are inherited in the
|
||||
# icon themes installed by the package.
|
||||
symlinkParentIconThemes() {
|
||||
if [ -e $out/share/icons ]; then
|
||||
echo Symlinking parent icon themes...
|
||||
local theme
|
||||
local theme_name
|
||||
local inheritance
|
||||
local parent
|
||||
local parent_theme
|
||||
local dir
|
||||
local parent_path
|
||||
for theme in $out/share/icons/*/index.theme; do
|
||||
theme_name="${theme%/*}"
|
||||
theme_name="${theme_name##*/}"
|
||||
echo " theme: $theme_name"
|
||||
inheritance=$(sed -rne 's,^Inherits=(.*)$,\1,p' "$theme")
|
||||
IFS=',' read -ra parent_themes <<< "$inheritance"
|
||||
for parent_theme in "${parent_themes[@]}"; do
|
||||
parent_path=""
|
||||
if [ -e "$out/share/icons/$parent_theme" ]; then
|
||||
parent_path="$(realpath "$out/share/icons/$parent_theme")"
|
||||
else
|
||||
IFS=':' read -ra dirs <<< $XDG_ICON_DIRS
|
||||
for parent_dir in "${dirs[@]}"; do
|
||||
if [ -e "$parent_dir/icons/$parent_theme/index.theme" ]; then
|
||||
parent_path="$(realpath "$parent_dir/icons/$parent_theme")"
|
||||
ln -s "$parent_path" "$out/share/icons/"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
echo " parent: $parent_theme -> $parent_path"
|
||||
done
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
preFixupHooks+=(symlinkParentIconThemes)
|
||||
44
pkgs/data/icons/humanity-icon-theme/default.nix
Normal file
44
pkgs/data/icons/humanity-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenvNoCC, fetchurl, gtk3, gnome, hicolor-icon-theme }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "humanity-icon-theme";
|
||||
version = "0.6.16";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${version}.tar.xz";
|
||||
sha256 = "sha256-AyHl4zMyFE2/5Cui3Y/SB1yEUuyafDdybFPrafo4Ki0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gnome.adwaita-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Humanity* $out/share/icons
|
||||
rm $out/share/icons/*/{AUTHORS,CONTRIBUTORS,COPYING}
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Humanity icons from Ubuntu";
|
||||
homepage = "https://launchpad.net/humanity/";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
};
|
||||
}
|
||||
36
pkgs/data/icons/iconpack-jade/default.nix
Normal file
36
pkgs/data/icons/iconpack-jade/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iconpack-jade";
|
||||
version = "1.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "madmaxms";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0pwz3l5i93s84iwkn1jq8a150ma96788a0n41xq2cgy00j8h8xh0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Jade* $out/share/icons
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon pack based upon Faenza and Mint-X";
|
||||
homepage = "https://github.com/madmaxms/iconpack-jade";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
};
|
||||
}
|
||||
38
pkgs/data/icons/iconpack-obsidian/default.nix
Normal file
38
pkgs/data/icons/iconpack-obsidian/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, mint-x-icons, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iconpack-obsidian";
|
||||
version = "4.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "madmaxms";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1f32isq1xyn9b6p1nx5rssqgg9gw0jp9ld19860xk29fspmlfb8n";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ gnome-icon-theme mint-x-icons hicolor-icon-theme ];
|
||||
# still missing parent themes: Ambiant-MATE, Faenza-Dark, KFaenza
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
mv Obsidian* $out/share/icons
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Gnome icon pack based upon Faenza";
|
||||
homepage = "https://github.com/madmaxms/iconpack-obsidian";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
};
|
||||
}
|
||||
45
pkgs/data/icons/iso-flags/default.nix
Normal file
45
pkgs/data/icons/iso-flags/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, perl
|
||||
, inkscape
|
||||
, librsvg
|
||||
, targets ? [ "all" ]
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "iso-flags";
|
||||
version = "unstable-18012020";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "joielechong";
|
||||
repo = "iso-country-flags-svg-collection";
|
||||
rev = "9ebbd577b9a70fbfd9a1931be80c66e0d2f31a9d";
|
||||
sha256 = "17bm7w4md56xywixfvp7vr3d6ihvxk3383i9i4rpmgm6qa9dyxdl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
perl
|
||||
inkscape
|
||||
librsvg
|
||||
(perl.withPackages(pp: with pp; [ JSON XMLLibXML ]))
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
'';
|
||||
|
||||
buildFlags = targets;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share
|
||||
mv build $out/share/iso-flags
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/joielechong/iso-country-flags-svg-collection";
|
||||
description = "248 country flag SVG & PNG icons with different icon styles";
|
||||
license = [ licenses.publicDomain ];
|
||||
platforms = platforms.linux; # the output assets should work anywhere, but unsure about the tools to build them...
|
||||
maintainers = [ maintainers.mkg20001 ];
|
||||
};
|
||||
}
|
||||
46
pkgs/data/icons/kora-icon-theme/default.nix
Normal file
46
pkgs/data/icons/kora-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib, stdenv, fetchFromGitHub , gtk3, adwaita-icon-theme, breeze-icons, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "kora-icon-theme";
|
||||
version = "1.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bikass";
|
||||
repo = "kora";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-3TKjd2Lblb+/zFq7rkdgnD1dJU3kis7QZi7Ui74IWzA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
adwaita-icon-theme
|
||||
breeze-icons
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
mv kora* $out/share/icons/
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache -f $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "An SVG icon theme in four variants";
|
||||
homepage = "https://github.com/bikass/kora";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ bloomvdomino ];
|
||||
};
|
||||
}
|
||||
52
pkgs/data/icons/la-capitaine-icon-theme/default.nix
Normal file
52
pkgs/data/icons/la-capitaine-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, breeze-icons
|
||||
, elementary-icon-theme
|
||||
, gnome-icon-theme
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "la-capitaine-icon-theme";
|
||||
version = "0.6.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "keeferrourke";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0id2dddx6rl71472l47vafx968wnklmq6b980br68w82kcvqczzs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
elementary-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs configure
|
||||
|
||||
substituteInPlace configure \
|
||||
--replace 'DISTRO=$(format "$(lsb_release -si 2>/dev/null)")' 'DISTRO=nixos'
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons/$pname
|
||||
cp -a * $out/share/icons/$pname
|
||||
rm $out/share/icons/$pname/{configure,COPYING,LICENSE,*.md}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon theme inspired by macOS and Google's Material Design";
|
||||
homepage = "https://github.com/keeferrourke/la-capitaine-icon-theme";
|
||||
license = with licenses; [ gpl3Plus mit ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
56
pkgs/data/icons/luna-icons/default.nix
Normal file
56
pkgs/data/icons/luna-icons/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, breeze-icons
|
||||
, hicolor-icon-theme
|
||||
, pantheon
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "luna-icons";
|
||||
version = "2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "darkomarko42";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-aNN7ZoD4hZTw39Rwef4HRHzNzCM6O8Ev+37jZOfzN7s=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
hicolor-icon-theme
|
||||
pantheon.elementary-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Luna* $out/share/icons
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache "$theme"
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {inherit pname version; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon pack based on marwaita and papirus icons";
|
||||
homepage = "https://github.com/darkomarko42/Luna-Icons";
|
||||
license = [ licenses.gpl3Only ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
53
pkgs/data/icons/maia-icon-theme/default.nix
Normal file
53
pkgs/data/icons/maia-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitLab
|
||||
, cmake
|
||||
, extra-cmake-modules
|
||||
, gtk3
|
||||
, plasma-framework
|
||||
, kwindowsystem
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "maia-icon-theme";
|
||||
version = "2018-02-24";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.manjaro.org";
|
||||
group = "artwork";
|
||||
owner = "themes";
|
||||
repo = "maia";
|
||||
rev = "b61312cc80cb9d12b0d8a55b3e61668eb6b77d2d";
|
||||
sha256 = "1g98snlh96z4sqw9sfd7fxgamh45pcj3lh1kcmng7mirvrcn2pam";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
extra-cmake-modules
|
||||
gtk3
|
||||
plasma-framework
|
||||
kwindowsystem
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
postInstall = ''
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icons based on Breeze and Super Flat Remix";
|
||||
homepage = "https://gitlab.manjaro.org/artwork/themes/maia";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [ mounium ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
50
pkgs/data/icons/moka-icon-theme/default.nix
Normal file
50
pkgs/data/icons/moka-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, python3, faba-icon-theme, hicolor-icon-theme, jdupes }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "moka-icon-theme";
|
||||
version = "unstable-2019-05-29";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snwh";
|
||||
repo = pname;
|
||||
rev = "c0355ea31e5cfdb6b44d8108f602d66817546a09";
|
||||
sha256 = "0m4kfarkl94wdhsds2q1l9x5hfa9l3117l8j6j7qm7sf7yzr90c8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
gtk3
|
||||
python3
|
||||
jdupes
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
faba-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary for this package
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs meson/post_install.py
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
# replace duplicate files with symlinks
|
||||
jdupes -l -r $out/share/icons
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon theme designed with a minimal flat style using simple geometry and bright colours";
|
||||
homepage = "https://snwh.org/moka";
|
||||
license = with licenses; [ cc-by-sa-40 gpl3Only ];
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
37
pkgs/data/icons/nordzy-cursor-theme/default.nix
Normal file
37
pkgs/data/icons/nordzy-cursor-theme/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "nordzy-cursor-theme";
|
||||
version = "0.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alvatip";
|
||||
repo = "Nordzy-cursors";
|
||||
rev = "v${version}";
|
||||
sha256 = "XabfKFyeII7Xl+ozzpPnc4xFH4B7GzCTLq4M1QPSZPw=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
|
||||
cp -r nordzy-dark/ $out/share/icons/Nordzy-cursors
|
||||
mv $out/share/icons/Nordzy-cursors/index.theme $out/share/icons/Nordzy-cursors/cursor.theme
|
||||
mv $out/share/icons/Nordzy-cursors/Nordzy-cursors $out/share/icons/Nordzy-cursors/cursors
|
||||
cp -r nordzy-white/ $out/share/icons/Nordzy-white-cursors
|
||||
mv $out/share/icons/Nordzy-white-cursors/index.theme $out/share/icons/Nordzy-white-cursors/cursor.theme
|
||||
mv $out/share/icons/Nordzy-white-cursors/Nordzy-white-cursors $out/share/icons/Nordzy-white-cursors/cursors
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cursor theme using the Nord color palette and based on Vimix and cz-Viator";
|
||||
homepage = "https://github.com/alvatip/Nordzy-cursors";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [
|
||||
alexnortung
|
||||
];
|
||||
};
|
||||
}
|
||||
54
pkgs/data/icons/nordzy-icon-theme/default.nix
Normal file
54
pkgs/data/icons/nordzy-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
{ stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, gtk3
|
||||
, jdupes
|
||||
, nordzy-themes ? [ "all" ] # Override this to only install selected themes
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "nordzy-icon-theme";
|
||||
version = "unstable-2022-01-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alvatip";
|
||||
repo = "Nordzy-icon";
|
||||
rev = "10b9ee80ef5c4cac1d1770d89a6d55046521ea36";
|
||||
sha256 = "1b8abhs5gzr2qy407jq818pr67vjky8zn3pa3c8n552ayybblibk";
|
||||
};
|
||||
|
||||
# In the post patch phase we should first make sure to patch shebangs.
|
||||
postPatch = ''
|
||||
patchShebangs install.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
jdupes
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
name= ./install.sh --dest $out/share/icons \
|
||||
${lib.optionalString (nordzy-themes != []) (lib.strings.concatMapStrings (theme: "-t ${theme} ") nordzy-themes)}
|
||||
|
||||
# Replace duplicate files with hardlinks to the first file in each
|
||||
# set of duplicates, reducing the installed size in about 87%
|
||||
jdupes -L -r $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
dontFixup = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon theme using the Nord color palette, based on WhiteSur and Numix icon themes";
|
||||
homepage = "https://github.com/alvatip/Nordzy-icon";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ alexnortung ];
|
||||
};
|
||||
}
|
||||
33
pkgs/data/icons/numix-cursor-theme/default.nix
Normal file
33
pkgs/data/icons/numix-cursor-theme/default.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, stdenv, fetchFromGitHub, inkscape, xcursorgen }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "numix-cursor-theme";
|
||||
version = "1.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "numixproject";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1q3w5i0h3ly6i7s9pqjdrb14kp89i78s0havri7lhiqyxizjvcvh";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ inkscape xcursorgen ];
|
||||
|
||||
buildPhase = ''
|
||||
patchShebangs .
|
||||
HOME=$TMP ./build.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -dm 755 $out/share/icons
|
||||
cp -dr --no-preserve='ownership' Numix-Cursor{,-Light} $out/share/icons/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Numix cursor theme";
|
||||
homepage = "https://numixproject.github.io";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ offline ];
|
||||
};
|
||||
}
|
||||
45
pkgs/data/icons/numix-icon-theme-circle/default.nix
Normal file
45
pkgs/data/icons/numix-icon-theme-circle/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "numix-icon-theme-circle";
|
||||
version = "22.03.01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "numixproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-adSoFKvemirQtxoS6KrQvXxtIOKFZ73PTktVXytblbM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Numix-Circle{,-Light} $out/share/icons
|
||||
|
||||
for panel in $out/share/icons/*/*/panel; do
|
||||
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
|
||||
done
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Numix icon theme (circle version)";
|
||||
homepage = "https://numixproject.github.io";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
45
pkgs/data/icons/numix-icon-theme-square/default.nix
Normal file
45
pkgs/data/icons/numix-icon-theme-square/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, numix-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "numix-icon-theme-square";
|
||||
version = "22.03.01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "numixproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-VCXHInaxn5BKY9Yth6DjoKa/JS2WVjvwAfRMiL2r1B0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ numix-icon-theme hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Numix-Square{,-Light} $out/share/icons
|
||||
|
||||
for panel in $out/share/icons/*/*/panel; do
|
||||
ln -sf $(realpath ${numix-icon-theme}/share/icons/Numix/16/$(readlink $panel)) $panel
|
||||
done
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Numix icon theme (square version)";
|
||||
homepage = "https://numixproject.github.io";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
41
pkgs/data/icons/numix-icon-theme/default.nix
Normal file
41
pkgs/data/icons/numix-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "numix-icon-theme";
|
||||
version = "21.10.31";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "numixproject";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-wyVvXifdbKR2aiBMrki8y/H0khH4eFD1RHVSC+jAT28=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -a Numix{,-Light} $out/share/icons/
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Numix icon theme";
|
||||
homepage = "https://numixproject.github.io";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
37
pkgs/data/icons/oranchelo-icon-theme/default.nix
Normal file
37
pkgs/data/icons/oranchelo-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, plasma5Packages, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "oranchelo-icon-theme";
|
||||
version = "0.8.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "OrancheloTeam";
|
||||
repo = pname;
|
||||
rev = "096c8c8d550ac9a85f5f34f3f30243e6f198df2d";
|
||||
sha256 = "sha256-TKi42SA33pGKdrPtGTpvxFbOP+5N93Y4BvO4CRTveLM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
plasma5Packages.breeze-icons
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
cp -r $Oranchelo* $out/share/icons/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Oranchelo icon theme";
|
||||
homepage = "https://github.com/OrancheloTeam/oranchelo-icon-theme";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ _414owen ];
|
||||
};
|
||||
}
|
||||
49
pkgs/data/icons/paper-icon-theme/default.nix
Normal file
49
pkgs/data/icons/paper-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib, stdenv, fetchFromGitHub, meson, ninja, gtk3, gnome, gnome-icon-theme, hicolor-icon-theme, jdupes }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "paper-icon-theme";
|
||||
version = "unstable-2020-03-12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "snwh";
|
||||
repo = pname;
|
||||
rev = "aa3e8af7a1f0831a51fd7e638a4acb077a1e5188";
|
||||
sha256 = "0x6qzch4rrc8firb1dcf926j93gpqxvd7h6dj5wwczxbvxi5bd77";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
gtk3
|
||||
jdupes
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
gnome.adwaita-icon-theme
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary for this package
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
postInstall = ''
|
||||
# The cache for Paper-Mono-Dark is missing
|
||||
gtk-update-icon-cache "$out"/share/icons/Paper-Mono-Dark;
|
||||
|
||||
# replace duplicate files with symlinks
|
||||
jdupes -l -r $out/share/icons
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modern icon theme designed around bold colours and simple geometric shapes";
|
||||
homepage = "https://snwh.org/paper";
|
||||
license = with licenses; [ cc-by-sa-40 lgpl3 ];
|
||||
# darwin cannot deal with file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
44
pkgs/data/icons/papirus-icon-theme/default.nix
Normal file
44
pkgs/data/icons/papirus-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, pantheon, breeze-icons, gnome-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "papirus-icon-theme";
|
||||
version = "20220302";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "PapirusDevelopmentTeam";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-X92an2jGRgZ/Q3cr6Q729DA2hs/2y34HoRpB1rxk0hI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pantheon.elementary-icon-theme
|
||||
breeze-icons
|
||||
gnome-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons
|
||||
mv {,e}Papirus* $out/share/icons
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Papirus icon theme";
|
||||
homepage = "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin gives hash mismatch in source, probably because of file names differing only in case
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo fortuneteller2k ];
|
||||
};
|
||||
}
|
||||
45
pkgs/data/icons/papirus-maia-icon-theme/default.nix
Normal file
45
pkgs/data/icons/papirus-maia-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, gtk3, breeze-icons, gnome-icon-theme, papirus-icon-theme, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "papirus-maia-icon-theme";
|
||||
version = "2019-07-26";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ste74";
|
||||
repo = pname;
|
||||
rev = "90d47c817cc0edeed8b5a90335e669948ff4a116";
|
||||
sha256 = "0d6lvdg5nw5wfaq8lxszcws174vg12ywkrqzn6czimhmhp48jf5p";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
gnome-icon-theme
|
||||
papirus-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace /usr "$out"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Manjaro variation of Papirus icon theme";
|
||||
homepage = "https://github.com/Ste74/papirus-maia-icon-theme";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
28
pkgs/data/icons/phinger-cursors/default.nix
Normal file
28
pkgs/data/icons/phinger-cursors/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenvNoCC, fetchurl }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "phinger-cursors";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/phisch/phinger-cursors/releases/download/v${version}/phinger-cursors-variants.tar.bz2";
|
||||
sha256 = "sha256-II+1x+rcjGRRVB8GYkVwkKVHNHcNaBKRb6C613901oc=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/icons
|
||||
cp -r ./phinger-cursors* $out/share/icons
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "The most over-engineered cursor theme";
|
||||
homepage = "https://github.com/phisch/phinger-cursors";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.cc-by-sa-40;
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
};
|
||||
}
|
||||
42
pkgs/data/icons/pop-icon-theme/default.nix
Normal file
42
pkgs/data/icons/pop-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, meson
|
||||
, ninja
|
||||
, gtk3
|
||||
, adwaita-icon-theme
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pop-icon-theme";
|
||||
version = "2021-11-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pop-os";
|
||||
repo = "icon-theme";
|
||||
rev = "9998b20b78f3ff65ecbf2253bb863d1e669abe74";
|
||||
sha256 = "0lwdmaxs9xj4bm21ldh64bzyb6iz5d5k1256iwvyjp725l7686cl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
adwaita-icon-theme
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon theme for Pop!_OS with a semi-flat design and raised 3D motifs";
|
||||
homepage = "https://github.com/pop-os/icon-theme";
|
||||
license = with licenses; [ cc-by-sa-40 gpl3 ];
|
||||
platforms = platforms.linux; # hash mismatch on darwin due to file names differing only in case
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
46
pkgs/data/icons/qogir-icon-theme/default.nix
Normal file
46
pkgs/data/icons/qogir-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, hicolor-icon-theme
|
||||
, jdupes
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "qogir-icon-theme";
|
||||
version = "2022-01-12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1daayxsqh7di3bvfnl39h1arsj1fypd3ba30mas6dl1d0qy17z1p";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 jdupes ];
|
||||
|
||||
propagatedBuildInputs = [ hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary.
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
patchShebangs install.sh
|
||||
mkdir -p $out/share/icons
|
||||
name= ./install.sh -d $out/share/icons
|
||||
jdupes -L -r $out/share/icons
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flat colorful design icon theme";
|
||||
homepage = "https://github.com/vinceliuice/Qogir-icon-theme";
|
||||
license = with licenses; [ gpl3Only ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
28
pkgs/data/icons/quintom-cursor-theme/default.nix
Normal file
28
pkgs/data/icons/quintom-cursor-theme/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ stdenvNoCC, fetchFromGitLab, lib }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "quintom-cursor-theme";
|
||||
version = "unstable-2019-10-24";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "Burning_Cube";
|
||||
repo = "quintom-cursor-theme";
|
||||
rev = "d23e57333e816033cf20481bdb47bb1245ed5d4d";
|
||||
hash = "sha256-Sec2DSnWYal6wzYzP9W+DDuTKHsFHWdRYyMzliMU5bU=A";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons
|
||||
for theme in "Quintom_Ink" "Quintom_Snow"; do
|
||||
cp -r "$theme Cursors/$theme" $out/share/icons/
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A cursor theme designed to look decent";
|
||||
homepage = "https://gitlab.com/Burning_Cube/quintom-cursor-theme";
|
||||
platforms = platforms.unix;
|
||||
license = with licenses; [ cc-by-sa-40 gpl3Only ];
|
||||
maintainers = with maintainers; [ frogamic ];
|
||||
};
|
||||
}
|
||||
32
pkgs/data/icons/tango-icon-theme/default.nix
Normal file
32
pkgs/data/icons/tango-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ lib, stdenv, fetchurl, intltool, pkg-config, iconnamingutils, imagemagick, librsvg
|
||||
, gtk/*any version*/, gnome-icon-theme, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "tango-icon-theme";
|
||||
version = "0.8.90";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://tango.freedesktop.org/releases/tango-icon-theme-${version}.tar.gz";
|
||||
sha256 = "13n8cpml71w6zfm2jz5fa7r1z18qlzk4gv07r6n1in2p5l1xi63f";
|
||||
};
|
||||
|
||||
patches = [ ./rsvg-convert.patch ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ intltool iconnamingutils imagemagick librsvg ];
|
||||
propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];
|
||||
# still missing parent icon themes: cristalsvg
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
configureFlags = [ "--enable-png-creation" ];
|
||||
|
||||
postInstall = '''${gtk.out}/bin/gtk-update-icon-cache' "$out/share/icons/Tango" '';
|
||||
|
||||
meta = {
|
||||
description = "A basic set of icons";
|
||||
homepage = "http://tango.freedesktop.org/Tango_Icon_Library";
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
34
pkgs/data/icons/tango-icon-theme/rsvg-convert.patch
Normal file
34
pkgs/data/icons/tango-icon-theme/rsvg-convert.patch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
Based on https://build.opensuse.org/package/view_file?file=tango-icon-theme-rsvg-2_35_2.patch&package=tango-icon-theme&project=openSUSE%3A12.2&rev=faf71bf8278d5df6ec8a31726e5b8542
|
||||
|
||||
diff -ru -x '*~' tango-icon-theme-0.8.90/configure tango-icon-theme-0.8.90-new/configure
|
||||
--- tango-icon-theme-0.8.90/configure 2009-02-26 04:08:00.000000000 +0100
|
||||
+++ tango-icon-theme-0.8.90-new/configure 2013-08-15 17:54:24.167065399 +0200
|
||||
@@ -6554,7 +6554,7 @@
|
||||
enable_large_bitmaps=no
|
||||
fi
|
||||
if test "x$enable_large_bitmaps" = "xyes"; then
|
||||
- svgconvert_prog="rsvg"
|
||||
+ svgconvert_prog="rsvg-convert"
|
||||
else
|
||||
svgconvert_prog="ksvgtopng"
|
||||
fi
|
||||
diff -ru -x '*~' tango-icon-theme-0.8.90/svg2png.sh.in tango-icon-theme-0.8.90-new/svg2png.sh.in
|
||||
--- tango-icon-theme-0.8.90/svg2png.sh.in 2007-02-16 21:04:29.000000000 +0100
|
||||
+++ tango-icon-theme-0.8.90-new/svg2png.sh.in 2013-08-15 17:54:08.275084837 +0200
|
||||
@@ -9,12 +9,14 @@
|
||||
|
||||
ICONFILE=`basename ${3}`
|
||||
ICONNAME=`echo ${ICONFILE} | sed -e "s/.svg//"`
|
||||
-if test `basename $SVGCONVERT` = "rsvg"; then
|
||||
+if test `basename $SVGCONVERT` = "rsvg-convert"; then
|
||||
OPTIONS="-w ${1} -h ${1}"
|
||||
+ OUTPUT="-o"
|
||||
else
|
||||
OPTIONS="${1} ${1}"
|
||||
+ OUTPUT=""
|
||||
fi
|
||||
|
||||
echo "${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png"
|
||||
-${SVGCONVERT} ${OPTIONS} ${3} ${2}/${ICONNAME}.png
|
||||
+${SVGCONVERT} ${OPTIONS} ${3} ${OUTPUT} ${2}/${ICONNAME}.png
|
||||
|
||||
68
pkgs/data/icons/tela-circle-icon-theme/default.nix
Normal file
68
pkgs/data/icons/tela-circle-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{ lib
|
||||
, stdenvNoCC
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, hicolor-icon-theme
|
||||
, jdupes
|
||||
, gitUpdater
|
||||
, allColorVariants ? false
|
||||
, circularFolder ? false
|
||||
, colorVariants ? [] # default is standard
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "tela-circle-icon-theme";
|
||||
in
|
||||
lib.checkListOfEnum "${pname}: color variants" [ "standard" "black" "blue" "brown" "green" "grey" "orange" "pink" "purple" "red" "yellow" "manjaro" "ubuntu" ] colorVariants
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
inherit pname;
|
||||
version = "2022-03-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "vQeWGZmurvT/UQJ1dx6t+ZeKdJ1Oq9TdHBADw64x18g=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
jdupes
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary for this package.
|
||||
# Package may install almost 400 000 small files.
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
patchShebangs install.sh
|
||||
|
||||
./install.sh -d $out/share/icons \
|
||||
${lib.optionalString circularFolder "-c"} \
|
||||
${if allColorVariants then "-a" else builtins.toString colorVariants}
|
||||
|
||||
jdupes --link-soft --recurse $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.updateScript = gitUpdater {inherit pname version; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Flat and colorful personality icon theme";
|
||||
homepage = "https://github.com/vinceliuice/Tela-circle-icon-theme";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux; # darwin use case-insensitive filesystems that cause hash mismatches
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
43
pkgs/data/icons/tela-icon-theme/default.nix
Normal file
43
pkgs/data/icons/tela-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, jdupes, hicolor-icon-theme }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "tela-icon-theme";
|
||||
version = "2022-02-21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-tnhu//q0Vl7MiMeHopB1Gwokkw/P+nDOo4HKizjxC0Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 jdupes ];
|
||||
|
||||
propagatedBuildInputs = [ hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary.
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
patchShebangs install.sh
|
||||
mkdir -p $out/share/icons
|
||||
./install.sh -a -d $out/share/icons
|
||||
jdupes -l -r $out/share/icons
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A flat colorful Design icon theme";
|
||||
homepage = "https://github.com/vinceliuice/tela-icon-theme";
|
||||
license = licenses.gpl3Only;
|
||||
# darwin systems use case-insensitive filesystems that cause hash mismatches
|
||||
platforms = subtractLists platforms.darwin platforms.unix;
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
};
|
||||
}
|
||||
49
pkgs/data/icons/vanilla-dmz/default.nix
Normal file
49
pkgs/data/icons/vanilla-dmz/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchzip
|
||||
, xorg
|
||||
, hicolor-icon-theme
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vanilla-dmz";
|
||||
version = "0.4.5";
|
||||
|
||||
src = fetchzip {
|
||||
url = "mirror://debian/pool/main/d/dmz-cursor-theme/dmz-cursor-theme_${version}.tar.xz";
|
||||
sha256 = "14r8fri4byyzavzdifpga6118hxqjwpzd11xxj28s16zxcanq16m";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
xorg.xcursorgen
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
hicolor-icon-theme
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
buildPhase = ''
|
||||
cd DMZ-White/pngs; ./make.sh; cd -
|
||||
cd DMZ-Black/pngs; ./make.sh; cd -
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/share/icons/Vanilla-DMZ/cursors
|
||||
cp -a DMZ-White/xcursors/* $out/share/icons/Vanilla-DMZ/cursors
|
||||
install -Dm644 DMZ-White/index.theme $out/share/icons/Vanilla-DMZ/index.theme
|
||||
|
||||
install -d $out/share/icons/Vanilla-DMZ-AA/cursors
|
||||
cp -a DMZ-Black/xcursors/* $out/share/icons/Vanilla-DMZ-AA/cursors
|
||||
install -Dm644 DMZ-Black/index.theme $out/share/icons/Vanilla-DMZ-AA/index.theme
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://jimmac.musichall.cz";
|
||||
description = "A style neutral scalable cursor theme";
|
||||
platforms = platforms.all;
|
||||
license = licenses.cc-by-sa-30;
|
||||
maintainers = with maintainers; [ cstrahan ];
|
||||
};
|
||||
}
|
||||
59
pkgs/data/icons/vimix-icon-theme/default.nix
Normal file
59
pkgs/data/icons/vimix-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, gtk3
|
||||
, hicolor-icon-theme
|
||||
, jdupes
|
||||
, colorVariants ? [] # default: all
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "vimix-icon-theme";
|
||||
|
||||
in
|
||||
lib.checkListOfEnum "${pname}: color variants" [ "standard" "Amethyst" "Beryl" "Doder" "Ruby" "Black" "White" ] colorVariants
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit pname;
|
||||
version = "2021-11-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1ali128027yw5kllip7p32c92pby5gaqs0i393m3bp69547np1d4";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 jdupes ];
|
||||
|
||||
propagatedBuildInputs = [ hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
# These fixup steps are slow and unnecessary for this package
|
||||
dontPatchELF = true;
|
||||
dontRewriteSymlinks = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
patchShebangs install.sh
|
||||
|
||||
./install.sh \
|
||||
${if colorVariants != [] then builtins.toString colorVariants else "-a"} \
|
||||
-d $out/share/icons
|
||||
|
||||
# replace duplicate files with symlinks
|
||||
jdupes -L -r $out/share/icons
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Material Design icon theme based on Paper icon theme";
|
||||
homepage = "https://github.com/vinceliuice/vimix-icon-theme";
|
||||
license = with licenses; [ cc-by-sa-40 ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
52
pkgs/data/icons/whitesur-icon-theme/default.nix
Normal file
52
pkgs/data/icons/whitesur-icon-theme/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib, stdenvNoCC, fetchFromGitHub, gtk3, hicolor-icon-theme }:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "Whitesur-icon-theme";
|
||||
version = "2022-03-18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "iHLxZqcDLUo62J67MwZ72CSvsHHiI9/Jk31KwkgIPr4=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gtk3 ];
|
||||
|
||||
buildInputs = [ hicolor-icon-theme ];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/icons/WhiteSur{,-dark}/status
|
||||
echo "$out/share/icons/WhiteSur/status $out/share/icons/WhiteSur-dark/status" | xargs -n 1 cp -r src/status/{16,22,24,32,symbolic}
|
||||
echo "$out/share/icons/WhiteSur $out/share/icons/WhiteSur-dark" | xargs -n 1 cp -r ./{COPYING,AUTHORS} src/index.theme src/{actions,animations,apps,categories,devices,emblems,mimes,places} links/{actions,apps,categories,devices,emblems,mimes,places,status}
|
||||
|
||||
# Change icon color for dark theme
|
||||
sed -i "s/#363636/#dedede/g" $out/share/icons/WhiteSur-dark/{actions,devices,places,status}/{16,22,24}/*
|
||||
sed -i "s/#363636/#dedede/g" $out/share/icons/WhiteSur-dark/actions/32/*
|
||||
sed -i "s/#363636/#dedede/g" $out/share/icons/WhiteSur-dark/{actions,apps,categories,emblems,devices,mimes,places,status}/symbolic/*
|
||||
|
||||
for f in actions animations apps categories devices emblems mimes places status; do
|
||||
ln -sf $out/share/icons/WhiteSur/$f $out/share/icons/WhiteSur/$f@2x
|
||||
ln -sf $out/share/icons/WhiteSur-dark/$f $out/share/icons/WhiteSur-dark/$f@2x
|
||||
done
|
||||
|
||||
for theme in $out/share/icons/*; do
|
||||
gtk-update-icon-cache $theme
|
||||
done
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MacOS Big Sur style icon theme for Linux desktops";
|
||||
homepage = "https://github.com/vinceliuice/WhiteSur-icon-theme";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ icy-thought ];
|
||||
};
|
||||
|
||||
}
|
||||
42
pkgs/data/icons/zafiro-icons/default.nix
Normal file
42
pkgs/data/icons/zafiro-icons/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, gtk3, breeze-icons, gnome-icon-theme, numix-icon-theme, numix-icon-theme-circle, hicolor-icon-theme }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zafiro-icons";
|
||||
version = "1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zayronxio";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "05h8qm9izjbp8pnl9jpbw3y9sddhp0zmg94fm1k4d4hhdqnakqhv";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
gtk3
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
breeze-icons
|
||||
gnome-icon-theme
|
||||
numix-icon-theme
|
||||
numix-icon-theme-circle
|
||||
hicolor-icon-theme
|
||||
# still missing parent icon themes: Surfn
|
||||
];
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/icons/Zafiro-icons
|
||||
cp -a * $out/share/icons/Zafiro-icons
|
||||
gtk-update-icon-cache "$out"/share/icons/Zafiro-icons
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Icon pack flat with light colors";
|
||||
homepage = "https://github.com/zayronxio/Zafiro-icons";
|
||||
license = with licenses; [ gpl3 ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue