HermitNix_DEPRECATED/Programs/MiniText/default.nix

49 lines
1.0 KiB
Nix

{ blueprint-compiler
, desktop-file-utils
, fetchFromGitHub
, lib
, libadwaita
, meson
, ninja
, python3
, stdenv
, wrapGAppsHook4
}:
stdenv.mkDerivation (finalAttrs: {
owner = "Nokse22";
pname = "mini-text";
version = "0.2.0";
src = fetchFromGitHub {
owner = "${finalAttrs.owner}";
repo = "${finalAttrs.pname}";
rev = "v${finalAttrs.version}";
hash = "sha256-hcZLI4aGopE1U3a7iFp+OB4JohfaSWnpAqEgeTCKFog=";
};
buildInputs = [
libadwaita
(python3.withPackages (p: with p; [
pygobject3
]))
];
nativeBuildInputs = [
blueprint-compiler
desktop-file-utils
meson
ninja
wrapGAppsHook4
];
meta = with lib; {
inherit (src.meta) homepage;
description = "An extremely simple Gtk4/Libadwaita app that shows a text view to copy/paste and edit text";
platforms = platforms.linux;
maintainers = with maintainers; [ hertog ];
license = licenses.gpl3;
changelog = "https://github.com/${finalAttrs.owner}/${finalAttrs.pname}/releases/tag/${finalAttrs.version}";
};
})