Files
nixpkgs/pkgs/by-name/tr/trelby/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.3 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
wrapGAppsHook3,
gtk3,
glib,
gsettings-desktop-schemas,
}:
python3Packages.buildPythonApplication rec {
pname = "trelby";
version = "2.4.15";
pyproject = true;
src = fetchFromGitHub {
owner = "trelby";
repo = "trelby";
tag = version;
hash = "sha256-CTasd+YlRHjYUVepZf2RDOuw1p0OdQfJENZamSmXXFw=";
};
build-system = [
python3Packages.setuptools
];
nativeBuildInputs = [
wrapGAppsHook3
];
buildInputs = [
glib
gsettings-desktop-schemas
gtk3
];
dependencies = with python3Packages; [
lxml
reportlab
wxpython
];
postInstall = ''
install -Dm644 trelby/resources/trelby.desktop $out/share/applications/trelby.desktop
install -Dm644 trelby/resources/icon256.png $out/share/icons/hicolor/256x256/apps/trelby.png
substituteInPlace $out/share/applications/trelby.desktop \
--replace-fail "Icon=trelby256" "Icon=trelby"
'';
meta = {
description = "Free, multiplatform, feature-rich screenwriting program";
homepage = "https://www.trelby.org";
downloadPage = "https://github.com/trelby/trelby";
mainProgram = "trelby";
license = lib.licenses.gpl2Only;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ isotoxal ];
};
}