14 stdenv.mkDerivation (finalAttrs: {
18 outputs = [ "out" "dev" "info" "doc" ]
19 # configure: WARNING: cannot generate manual pages while cross compiling
20 ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ "man" ];
22 src = fetchFromGitHub {
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-gub/XUwbM7wzeQ0eXtpqaWxPDhlksVW7xSnFB6oXNyQ=";
36 python3.pkgs.installer
37 python3.pkgs.setuptools
54 # Required by Python bindings
60 substituteInPlace python/louis/__init__.py.in --replace "###LIBLOUIS_SONAME###" "$out/lib/liblouis.so"
65 python -m build --no-isolation --outdir dist/ --wheel
66 python -m installer --prefix $out dist/*.whl
73 description = "Open-source braille translator and back-translator";
74 homepage = "https://liblouis.io/";
75 license = with licenses; [
79 maintainers = with maintainers; [ jtojnar ];
80 platforms = platforms.unix;