nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 ocamlPackages,
5}:
6
7ocamlPackages.buildDunePackage rec {
8 pname = "gradescope_submit";
9 version = "2.0.2";
10
11 src = fetchFromGitHub {
12 owner = "nmittu";
13 repo = "gradescope-submit";
14 rev = version;
15 hash = "sha256-BVNXipgw0wz3PRGYvur8jrXZw/6i0fZ+MOZHzXzlFOk=";
16 };
17
18 buildInputs = with ocamlPackages; [
19 core
20 core_unix
21 cohttp
22 cohttp-lwt-unix
23 lambdasoup
24 toml
25 yojson
26 lwt_ssl
27 ];
28
29 meta = {
30 description = "Small script to submit to Gradescope via GitHub";
31 homepage = "https://github.com/nmittu/gradescope-submit";
32 license = lib.licenses.mit;
33 maintainers = [ ];
34 mainProgram = "submit";
35 };
36}