Skip to content

Commit

Permalink
ac-library: init at 1.5.1 (#338071)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillrdy committed Sep 29, 2024
2 parents 72c1fb5 + 3505c37 commit c3a1847
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions pkgs/by-name/ac/ac-library/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
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;
};
})

0 comments on commit c3a1847

Please sign in to comment.