2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitLab,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
pkg-config,
|
|
|
|
cargo,
|
|
|
|
rustc,
|
|
|
|
rustPlatform,
|
|
|
|
blueprint-compiler,
|
|
|
|
glib,
|
|
|
|
gtk4,
|
|
|
|
libadwaita,
|
|
|
|
gtksourceview5,
|
|
|
|
wrapGAppsHook4,
|
|
|
|
desktop-file-utils,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "textpieces";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.1.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "liferooter";
|
|
|
|
repo = "textpieces";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-0bc2Q3k08ZItRH7teQCv7uQyj4Rig6LtZmO5Vu48vxo=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-09-19 14:19:46 +00:00
|
|
|
"textpieces-core-1.1.2" = "sha256-fAATzugZ4kpUqHx8H4yuNH9Weeubkp8eAHAe94rMBmA=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
blueprint-compiler
|
|
|
|
wrapGAppsHook4
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
gtksourceview5
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Swiss knife of text processing";
|
2024-09-19 14:19:46 +00:00
|
|
|
longDescription = ''
|
|
|
|
A small tool for quick text transformations such as
|
|
|
|
checksums, encoding, decoding and so on.
|
|
|
|
'';
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://gitlab.com/liferooter/textpieces";
|
|
|
|
mainProgram = "textpieces";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = with lib.licenses; [
|
|
|
|
gpl3Plus
|
|
|
|
# and
|
|
|
|
cc0
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
zendo
|
|
|
|
aleksana
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
})
|