Files
nixpkgs/pkgs/by-name/ba/badchars/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

40 lines
1019 B
Nix

{
lib,
fetchFromGitHub,
gitUpdater,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "badchars";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cytopia";
repo = "badchars";
tag = version;
hash = "sha256-VWe3k34snEviBK7VBCDTWAu3YjZfh1gXHXjlnFlefJw=";
};
build-system = with python3.pkgs; [ setuptools ];
# no tests are available and it can't be imported (it's only a script, not a module)
doCheck = false;
passthru.updateScript = gitUpdater { };
meta = {
description = "HEX badchar generator for different programming languages";
longDescription = ''
A HEX bad char generator to instruct encoders such as shikata-ga-nai to
transform those to other chars.
'';
homepage = "https://github.com/cytopia/badchars";
changelog = "https://github.com/cytopia/badchars/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "badchars";
};
}