Skip to content

Commit

Permalink
Add description to each package
Browse files Browse the repository at this point in the history
  • Loading branch information
Niols committed Jun 20, 2023
1 parent 34f990a commit f9cf2cd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .nix/with-nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
installPhase = ''
make install PREFIX=$out LIBDIR=$OCAMLFIND_DESTDIR
'';

meta.description =
"Morbig, where all the dependencies come from `nixpkgs`.";
};
};
}
8 changes: 7 additions & 1 deletion .nix/with-opam-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
resolveArgs.with-doc = true;
resolveArgs.with-test = true;
} "morbig" ./.. { ocaml-base-compiler = "*"; };
in { packages.with-opam-nix = scope.morbig // { inherit scope; }; };
in {
packages.with-opam-nix = scope.morbig // {
inherit scope;
meta.description =
"Morbig, where all the dependencies are handled by `opam-nix`.";
};
};
}
4 changes: 3 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
perSystem = { self', pkgs, config, ... }: {
formatter = pkgs.nixfmt;

packages.default = self'.packages.with-nixpkgs;
packages.default = self'.packages.with-nixpkgs // {
meta.description = "Alias for `with-nixpkgs`.";
};

## For each package, we define a corresponding devShell using its inputs
## and adding pre-commit hooks and development tools on top.
Expand Down

0 comments on commit f9cf2cd

Please sign in to comment.