mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +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.
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{ stdenv
|
|
, autoreconfHook
|
|
, fetchFromGitHub
|
|
, gnome-shell
|
|
, gnome-themes-extra
|
|
, gtk-engine-murrine
|
|
, gtk3
|
|
, inkscape
|
|
, lib
|
|
, optipng
|
|
, pkg-config
|
|
, sassc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ayu-theme-gtk";
|
|
version = "unstable-2017-05-12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dnordstrom";
|
|
repo = "ayu-theme";
|
|
rev = "cc6f3d3b72897c304e2f00afcaf51df863155e35";
|
|
sha256 = "sha256-1EhTfPhYl+4IootTCCE04y6V7nW1/eWdHarfF7/j1U0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -sn 3.20 common/gtk-3.0/3.24
|
|
ln -sn 3.18 common/gnome-shell/3.24
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
gtk3
|
|
inkscape
|
|
optipng
|
|
pkg-config
|
|
sassc
|
|
];
|
|
|
|
propagatedUserEnvPkgs = [
|
|
gnome-themes-extra
|
|
gtk-engine-murrine
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preBuild = ''
|
|
# Shut up inkscape's warnings about creating profile directory
|
|
export HOME="$NIX_BUILD_ROOT"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-gnome-shell=${gnome-shell.version}"
|
|
"--disable-unity"
|
|
];
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Ayu colored GTK and Kvantum themes based on Arc";
|
|
homepage = "https://github.com/dnordstrom/ayu-theme/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
};
|
|
}
|
|
|