depot/third_party/nixpkgs/pkgs/by-name/ac/ac-library/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

49 lines
1 KiB
Nix

{
fetchFromGitHub,
stdenv,
lib,
python3,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ac-library";
version = "1.5.1";
src = fetchFromGitHub {
owner = "atcoder";
repo = "ac-library";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-AIqG98c1tcxxhYcX+NSf6Rw3onw61T5NTZtqQzT9jls=";
};
outputs = [
"dev"
"out"
];
buildInputs = [
python3
];
installPhase = ''
runHook preInstall
install -d $dev/include/atcoder
install -m644 atcoder/* $dev/include/atcoder/
install -Dm755 expander.py $out/bin/expander
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Official library of AtCoder";
homepage = "https://github.com/atcoder/ac-library";
license = lib.licenses.cc0;
changelog = "https://github.com/atcoder/ac-library/releases/tag/v${finalAttrs.version}";
maintainers = with lib.maintainers; [ bot-wxt1221 ];
platforms = lib.platforms.all;
};
})