nixpkgs/pkgs/by-name/bi/binary/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.6 KiB
Nix
Raw Normal View History

2024-06-24 02:45:46 +00:00
{
lib,
appstream,
blueprint-compiler,
2024-06-24 02:45:46 +00:00
desktop-file-utils,
fetchFromGitHub,
2024-06-24 02:45:46 +00:00
glib,
gobject-introspection,
gtk4,
2024-06-24 02:45:46 +00:00
libadwaita,
meson,
ninja,
pkg-config,
python3Packages,
2024-06-24 02:45:46 +00:00
wrapGAppsHook4,
}:
python3Packages.buildPythonApplication rec {
pname = "binary";
2024-11-07 19:03:50 +00:00
version = "5.1";
pyproject = false;
2024-06-24 02:45:46 +00:00
src = fetchFromGitHub {
owner = "fizzyizzy05";
repo = "binary";
rev = "refs/tags/${version}";
2024-11-07 19:03:50 +00:00
hash = "sha256-HBmWaT0cjYz3UAO1r5chFW7KARpL1EnY8wEeR9etPE0=";
2024-06-24 02:45:46 +00:00
};
strictDeps = true;
2024-06-24 02:45:46 +00:00
nativeBuildInputs = [
appstream
blueprint-compiler
desktop-file-utils # for `desktop-file-validate`
glib # for `glib-compile-schemas`
2024-06-24 02:45:46 +00:00
gobject-introspection
gtk4 # for `gtk-update-icon-cache`
2024-06-24 02:45:46 +00:00
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [ libadwaita ];
dependencies = with python3Packages; [ pygobject3 ];
dontWrapGApps = true;
makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ];
# NOTE: `postCheck` is intentionally not used here, as the entire checkPhase
# is skipped by `buildPythonApplication`
# https://github.com/NixOS/nixpkgs/blob/9d4343b7b27a3e6f08fc22ead568233ff24bbbde/pkgs/development/interpreters/python/mk-python-derivation.nix#L296
postInstallCheck = ''
mesonCheckPhase
'';
2024-06-24 02:45:46 +00:00
meta = {
description = "Small and simple app to convert numbers to a different base";
homepage = "https://github.com/fizzyizzy05/binary";
changelog = "https://github.com/fizzyizzy05/binary/releases/tag/${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ getchoo ];
mainProgram = "binary";
platforms = lib.platforms.linux;
};
}