nixpkgs/pkgs/by-name/gn/gnome-calculator/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

82 lines
1.4 KiB
Nix

{
stdenv,
lib,
appstream,
meson,
ninja,
vala,
gettext,
itstool,
fetchurl,
pkg-config,
libxml2,
gtk4,
glib,
gtksourceview5,
wrapGAppsHook4,
gnome,
mpfr,
gmp,
libsoup_3,
libmpc,
libadwaita,
gsettings-desktop-schemas,
libgee,
}:
stdenv.mkDerivation rec {
pname = "gnome-calculator";
version = "47.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-calculator/${lib.versions.major version}/gnome-calculator-${version}.tar.xz";
hash = "sha256-3s2yMoO12+70CVG2nq99S4DAw4gN2wGGP58PFVT4mYs=";
};
nativeBuildInputs = [
appstream
meson
ninja
pkg-config
vala
gettext
itstool
wrapGAppsHook4
];
buildInputs = [
gtk4
glib
libxml2
gtksourceview5
mpfr
gmp
libgee
gsettings-desktop-schemas
libsoup_3
libmpc
libadwaita
];
doCheck = true;
preCheck = ''
# Currency conversion test tries to store currency data in $HOME/.cache.
export HOME=$TMPDIR
'';
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-calculator";
};
};
meta = with lib; {
homepage = "https://apps.gnome.org/Calculator/";
description = "Application that solves mathematical equations and is suitable as a default application in a Desktop environment";
maintainers = teams.gnome.members;
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
}