nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildDunePackage,
4 fetchzip,
5 bos,
6 cmdliner,
7 fmt,
8 fpath,
9 menhir,
10 menhirLib,
11 prelude,
12 sedlex,
13 writableTmpDirAsHomeHook,
14}:
15
16buildDunePackage rec {
17 pname = "scfg";
18 version = "0.5";
19
20 # upstream git repo is misconfigured and cannot be cloned
21 src = fetchzip {
22 url = "https://git.zapashcanon.fr/zapashcanon/scfg/archive/${version}.tar.gz";
23 hash = "sha256-XyNVmI0W0B1JqR+uuojpHe9L5KKLhyoH8vN8+9i7Xcg=";
24 };
25
26 nativeBuildInputs = [
27 menhir
28 ];
29
30 buildInputs = [
31 cmdliner
32 ];
33
34 propagatedBuildInputs = [
35 bos
36 fmt
37 fpath
38 menhirLib
39 prelude
40 sedlex
41 ];
42
43 checkInputs = [
44 writableTmpDirAsHomeHook
45 ];
46
47 doCheck = true;
48
49 meta = {
50 description = "Library to work with the scfg configuration file";
51 homepage = "https://ocaml.org/p/scfg/";
52 downloadPage = "https://git.zapashcanon.fr/zapashcanon/scfg";
53 changelog = "https://git.zapashcanon.fr/zapashcanon/scfg/src/tag/${version}/CHANGES.md";
54 license = lib.licenses.isc;
55 maintainers = [ lib.maintainers.ethancedwards8 ];
56 };
57}