nixpkgs/pkgs/tools/text/textpieces/default.nix

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

80 lines
1.5 KiB
Nix
Raw Normal View History

2022-10-17 12:42:32 +00:00
{ lib
, stdenv
, fetchFromGitHub
, python3
, meson
, ninja
, pkg-config
, vala
, glib
, gtk4
, libgee
, libadwaita
2023-06-25 19:39:10 +00:00
, libportal-gtk4
2022-10-17 12:42:32 +00:00
, json-glib
, blueprint-compiler
, gtksourceview5
, gobject-introspection
, wrapGAppsHook4
, appstream-glib
, desktop-file-utils
}:
let
2023-06-25 19:39:10 +00:00
pythonEnv = python3.withPackages (ps: with ps; [ pyyaml ]);
2022-10-17 12:42:32 +00:00
in
2023-06-25 19:39:10 +00:00
stdenv.mkDerivation (finalAttrs: {
2022-10-17 12:42:32 +00:00
pname = "textpieces";
2023-06-25 19:39:10 +00:00
version = "3.4.1";
2022-10-17 12:42:32 +00:00
src = fetchFromGitHub {
owner = "liferooter";
2023-06-25 19:39:10 +00:00
repo = "textpieces";
rev = "v${finalAttrs.version}";
hash = "sha256-3ZUHzt3oXYgsnJVDf83JUDhcF+0DLgFfOMtpKI/FTcE=";
2022-10-17 12:42:32 +00:00
};
nativeBuildInputs = [
meson
ninja
pkg-config
pythonEnv
vala
blueprint-compiler
wrapGAppsHook4
appstream-glib
desktop-file-utils
gobject-introspection
2022-10-17 12:42:32 +00:00
];
buildInputs = [
glib
gtk4
libadwaita
2023-06-25 19:39:10 +00:00
libportal-gtk4
2022-10-17 12:42:32 +00:00
libgee
json-glib
gtksourceview5
];
runtimeDependencies = [
pythonEnv
];
postPatch = ''
chmod +x build-aux/meson/postinstall.py
patchShebangs build-aux/meson/postinstall.py
patchShebangs scripts/
'';
meta = with lib; {
description = "Quick text processing";
longDescription = "A small tool for quick text transformations such as checksums, encoding, decoding and so on.";
homepage = "https://github.com/liferooter/textpieces";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ zendo ];
2023-06-25 19:39:10 +00:00
broken = true; # https://github.com/liferooter/textpieces/issues/130
2022-10-17 12:42:32 +00:00
};
2023-06-25 19:39:10 +00:00
})