mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gdk-pixbuf
|
|
, librsvg
|
|
, gtk-engine-murrine
|
|
, gtk3
|
|
, adwaita-icon-theme
|
|
, gnome-icon-theme
|
|
, numix-icon-theme-circle
|
|
, hicolor-icon-theme
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "canta-theme";
|
|
version = "2021-09-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vinceliuice";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "05h42nrggb6znzjcbh4lqqfcm41h4r85n3vwimp3l4lq5p90igr2";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gtk3
|
|
];
|
|
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
librsvg
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
adwaita-icon-theme
|
|
gnome-icon-theme
|
|
numix-icon-theme-circle
|
|
hicolor-icon-theme
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
dontDropIconThemeCache = true;
|
|
|
|
installPhase = ''
|
|
patchShebangs .
|
|
mkdir -p $out/share/themes
|
|
name= ./install.sh --dest $out/share/themes
|
|
rm $out/share/themes/*/{AUTHORS,COPYING}
|
|
install -D -t $out/share/backgrounds wallpaper/canta-wallpaper.svg
|
|
mkdir -p $out/share/icons
|
|
cp -a icons/Canta $out/share/icons
|
|
gtk-update-icon-cache $out/share/icons/Canta
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Flat Design theme for GTK based desktop environments";
|
|
homepage = "https://github.com/vinceliuice/Canta-theme";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.linux; # numix-icon-theme-circle unavailable in darwin
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|