mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
53 lines
965 B
Nix
53 lines
965 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
desktop-file-utils,
|
|
libadwaita,
|
|
mpfr,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sums";
|
|
version = "0.16";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "leesonwai";
|
|
repo = "sums";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-X+AMUH8nJli0Um1bH0gDGLnfHGknqea3DZxH+tdTEr8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# tests target has racy config.h dep
|
|
substituteInPlace meson.build \
|
|
--replace-fail "subdir('tests')" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
desktop-file-utils
|
|
];
|
|
|
|
buildInputs = [
|
|
libadwaita
|
|
mpfr
|
|
];
|
|
|
|
meta = {
|
|
description = "Simple GTK postfix calculator for GNOME";
|
|
homepage = "https://gitlab.com/leesonwai/sums";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "sums";
|
|
maintainers = with lib.maintainers; [ aleksana ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|