depot/third_party/nixpkgs/pkgs/tools/misc/gradescope-submit/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
716 B
Nix

{ lib
, fetchFromGitHub
, ocamlPackages
}:
ocamlPackages.buildDunePackage rec {
pname = "gradescope_submit";
version = "2.0.2";
src = fetchFromGitHub {
owner = "nmittu";
repo = "gradescope-submit";
rev = version;
hash = "sha256-BVNXipgw0wz3PRGYvur8jrXZw/6i0fZ+MOZHzXzlFOk=";
};
buildInputs = with ocamlPackages; [
core
core_unix
cohttp
cohttp-lwt-unix
lambdasoup
toml
yojson
lwt_ssl
];
meta = with lib; {
description = "A small script to submit to Gradescope via GitHub";
homepage = "https://github.com/nmittu/gradescope-submit";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
mainProgram = "submit";
};
}