Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anmonteiro/httpaf
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Aug 6, 2024
2 parents 18b2d15 + 9b230ee commit 8c2b051
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 17 deletions.
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
rec {
packages = pkgs.callPackage ./nix { nix-filter = nix-filter.lib; };
defaultPackage = packages.httpun;
devShell = pkgs.callPackage ./shell.nix { inherit packages; };
devShells = {
default = pkgs.callPackage ./nix/shell.nix { inherit packages; };
release = pkgs.callPackage ./nix/shell.nix {
inherit packages;
release-mode = true;
};
};
});
}
2 changes: 0 additions & 2 deletions httpun-async.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "httpun-async"
maintainer: "Antonio Nuno Monteiro <[email protected]>"
authors: [
"Spiros Eliopoulos <[email protected]>"
Expand All @@ -16,7 +15,6 @@ build: [
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "3.0.0"}
"faraday-async" {>= "0.7.2"}
"async" {>= "v0.16.0"}
"httpun" {= version}
"gluten-async" {>= "0.5.0"}
Expand Down
1 change: 0 additions & 1 deletion httpun-eio.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "httpun-eio"
maintainer: "Antonio Monteiro <[email protected]>"
authors: [ "Antonio Monteiro <[email protected]>" ]
license: "BSD-3-clause"
Expand Down
1 change: 0 additions & 1 deletion httpun-lwt-unix.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "httpun-lwt-unix"
maintainer: "Antonio Nuno Monteiro <[email protected]>"
authors: [
"Anton Bachin <[email protected]>"
Expand Down
1 change: 0 additions & 1 deletion httpun-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
opam-version: "2.0"
name: "httpun-lwt"
maintainer: "Antonio Nuno Monteiro <[email protected]>"
authors: [
"Anton Bachin <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion httpun-mirage.opam
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build: [
depends: [
"ocaml" {>= "4.08.0"}
"dune" {>= "3.0.0"}
"httpun" {= version}
"httpun-lwt" {= version}
"gluten-mirage" {>= "0.5.0"}
"mirage-flow" {>= "2.0.0"}
"cstruct"
Expand Down
1 change: 1 addition & 0 deletions lib_test/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(test
(package httpun)
(libraries bigstringaf httpun alcotest)
(modules
helpers
Expand Down
17 changes: 14 additions & 3 deletions shell.nix → nix/shell.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
{ pkgs, stdenv, lib }:
{ pkgs
, packages
, stdenv
, lib
, release-mode ? false
}:

let
httpunPkgs = pkgs.recurseIntoAttrs (import ./nix { inherit pkgs; doCheck = false; });
httpunDrvs = lib.filterAttrs (_: value: lib.isDerivation value) httpunPkgs;
httpunDrvs = lib.filterAttrs (_: value: lib.isDerivation value) packages;

in
with pkgs;

(mkShell {
OCAMLRUNPARAM = "b";
nativeBuildInputs =
lib.optionals release-mode [
cacert
curl
ocamlPackages.dune-release
git
];
inputsFrom = lib.attrValues httpunDrvs;
buildInputs = with ocamlPackages; [ merlin utop ];
}).overrideAttrs (o: {
Expand Down

0 comments on commit 8c2b051

Please sign in to comment.