mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
49 lines
1.4 KiB
Nix
49 lines
1.4 KiB
Nix
{ stdenv, fetchurl
|
|
, meson, ninja, gettext, pkgconfig, wrapGAppsHook, itstool, desktop-file-utils
|
|
, vala, gobject-introspection, libxml2, gtk3, glib, gsound, sound-theme-freedesktop
|
|
, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop, geocode-glib
|
|
, gnome3, gdk-pixbuf, geoclue2, libgweather }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-clocks";
|
|
version = "3.32.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-clocks/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1w6lgjdak3x76c9gyhd1lqrdmjfh8q77sjnrkcimylsg0jq913bc";
|
|
};
|
|
|
|
passthru = {
|
|
updateScript = gnome3.updateScript {
|
|
packageName = "gnome-clocks";
|
|
attrPath = "gnome3.gnome-clocks";
|
|
};
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
nativeBuildInputs = [
|
|
vala meson ninja pkgconfig gettext itstool wrapGAppsHook desktop-file-utils libxml2
|
|
gobject-introspection # for finding vapi files
|
|
];
|
|
buildInputs = [
|
|
gtk3 glib gsettings-desktop-schemas gdk-pixbuf adwaita-icon-theme
|
|
gnome-desktop geocode-glib geoclue2 libgweather gsound
|
|
];
|
|
|
|
preFixup = ''
|
|
gappsWrapperArgs+=(
|
|
# Fallback sound theme
|
|
--prefix XDG_DATA_DIRS : "${sound-theme-freedesktop}/share"
|
|
)
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://wiki.gnome.org/Apps/Clocks;
|
|
description = "Clock application designed for GNOME 3";
|
|
maintainers = gnome3.maintainers;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|