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

132 lines
2.7 KiB
Nix
Raw Permalink Normal View History

2024-11-02 08:37:45 +08:00
{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
pkg-config,
gobject-introspection,
blueprint-compiler,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
gtksourceview5,
webkitgtk_6_0,
gcr_4,
gdk-pixbuf,
2024-11-26 04:40:39 +08:00
autoPatchelfHook,
appstream,
libxml2,
2024-11-02 08:37:45 +08:00
}:
python3Packages.buildPythonApplication rec {
pname = "devtoolbox";
2025-07-09 10:13:24 +08:00
version = "1.3.0";
2024-11-02 08:37:45 +08:00
pyproject = false; # uses meson
src = fetchFromGitHub {
owner = "aleiepure";
repo = "devtoolbox";
tag = "v${version}";
2025-07-09 10:13:24 +08:00
hash = "sha256-ReF70pNMrMweEB4WAGQT++9TxTN4gV1olln7Y6YWCis=";
2024-11-02 08:37:45 +08:00
};
2025-07-09 10:13:24 +08:00
# test after update
2024-11-26 04:40:39 +08:00
postPatch = ''
substituteInPlace src/views/reverse_cron.py \
--replace-fail '"\D"' 'r"\D"'
'';
2024-11-02 08:37:45 +08:00
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
blueprint-compiler
wrapGAppsHook4
desktop-file-utils
2024-11-26 04:40:39 +08:00
autoPatchelfHook
appstream
libxml2
2024-11-02 08:37:45 +08:00
];
buildInputs = [
libadwaita
gtksourceview5
webkitgtk_6_0
gcr_4
gdk-pixbuf
];
dependencies = with python3Packages; [
pygobject3
ruamel-yaml
lxml
python-crontab
jwt
jsonschema
pytz
tzlocal
python-lorem
uuid6
textstat
markdown2
daltonlens
asn1crypto
qrcode
sqlparse
jsbeautifier
cssbeautifier
humanize
croniter
python-dateutil
rcssmin
rjsmin
2025-07-09 10:13:24 +08:00
cryptography
color-parser-py
2024-11-02 08:37:45 +08:00
];
dontWrapGApps = true;
# Contains an unusable devtoolbox-run-script
postInstall = ''
rm -r $out/devtoolbox
2024-11-26 04:40:39 +08:00
ln -s $out/share/locale/zh_Hant $out/share/locale/zh_TW
ln -s $out/share/locale/zh_Hans $out/share/locale/zh_CN
2024-11-02 08:37:45 +08:00
'';
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
description = "Development tools at your fingertips";
longDescription = ''
If you're tired of endlessly looking online for the right
tool, or to find again that website of which you don't
recall the name to do a quick conversion, this is the
right app for you. This is a collection of powerful yet
simple-to-use tools and utilities to solve the most common
daily development problems:
- JSON to YAML converter and vice-versa
- CRON expressions parser
- Formatters for common languages
- Hash generators
- Regex tester
- Markdown Previewer
- Image converters
- Much more...
'';
homepage = "https://github.com/aleiepure/devtoolbox";
license = with lib.licenses; [
gpl3Plus
cc0
lgpl3Only
mit
unlicense
];
mainProgram = "devtoolbox";
maintainers = with lib.maintainers; [ aleksana ];
2024-11-02 08:37:45 +08:00
platforms = lib.platforms.linux;
};
}