about summary refs log tree commit diff
path: root/pkgs/tools/misc/gradescope-submit/default.nix
blob: 89e7dc89438c8407adafbc40d7c017b017d656eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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";
  };
}