Skip to content

Commit fcd81d0

Browse files
committed
gnome-clocks: rec -> finalAttrs, nixfmt-rfc-style
1 parent 8fa00a6 commit fcd81d0

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

pkgs/desktops/gnome/apps/gnome-clocks/default.nix

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,35 @@
1-
{ stdenv
2-
, lib
3-
, fetchurl
4-
, meson
5-
, ninja
6-
, gettext
7-
, pkg-config
8-
, wrapGAppsHook4
9-
, itstool
10-
, desktop-file-utils
11-
, vala
12-
, libxml2
13-
, gtk4
14-
, glib
15-
, sound-theme-freedesktop
16-
, gsettings-desktop-schemas
17-
, gnome-desktop
18-
, geocode-glib_2
19-
, gnome
20-
, gdk-pixbuf
21-
, geoclue2
22-
, libgweather
23-
, libadwaita
1+
{
2+
stdenv,
3+
lib,
4+
fetchurl,
5+
meson,
6+
ninja,
7+
gettext,
8+
pkg-config,
9+
wrapGAppsHook4,
10+
itstool,
11+
desktop-file-utils,
12+
vala,
13+
libxml2,
14+
gtk4,
15+
glib,
16+
sound-theme-freedesktop,
17+
gsettings-desktop-schemas,
18+
gnome-desktop,
19+
geocode-glib_2,
20+
gnome,
21+
gdk-pixbuf,
22+
geoclue2,
23+
libgweather,
24+
libadwaita,
2425
}:
2526

26-
stdenv.mkDerivation rec {
27+
stdenv.mkDerivation (finalAttrs: {
2728
pname = "gnome-clocks";
2829
version = "46.0";
2930

3031
src = fetchurl {
31-
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major version}/${pname}-${version}.tar.xz";
32+
url = "mirror://gnome/sources/gnome-clocks/${lib.versions.major finalAttrs.version}/gnome-clocks-${finalAttrs.version}.tar.xz";
3233
hash = "sha256-6qPFeM3O+XVOZotWJnCbc/NSZxAjX0tyB20v9JpPmcc=";
3334
};
3435

@@ -72,12 +73,12 @@ stdenv.mkDerivation rec {
7273
};
7374
};
7475

75-
meta = with lib; {
76+
meta = {
7677
homepage = "https://apps.gnome.org/Clocks/";
7778
description = "Clock application designed for GNOME 3";
7879
mainProgram = "gnome-clocks";
79-
maintainers = teams.gnome.members;
80-
license = licenses.gpl2Plus;
81-
platforms = platforms.unix;
80+
maintainers = lib.teams.gnome.members;
81+
license = lib.licenses.gpl2Plus;
82+
platforms = lib.platforms.unix;
8283
};
83-
}
84+
})

0 commit comments

Comments
 (0)