Skip to content

Commit

Permalink
Release 0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Aug 15, 2022
1 parent 266df85 commit 8ad7db3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Unreleased
-----------
0.9.0 2022-08-14
---------------

- h2: Fix tests on 32-bit platforms
([#152](https://github.com/anmonteiro/ocaml-h2/pull/152))
Expand Down
8 changes: 6 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@
let
pkgs = nixpkgs.legacyPackages."${system}".extend (self: super: {
h2spec = super.callPackage ./nix/h2spec.nix { };
ocamlPackages = super.ocaml-ng.ocamlPackages_5_00;
});
in
rec {
packages = (pkgs.callPackage ./nix { nix-filter = nix-filter.lib; });
packages = pkgs.callPackage ./nix { nix-filter = nix-filter.lib; };
defaultPackage = packages.h2;
devShell = pkgs.callPackage ./shell.nix { };
devShells = rec {
default = pkgs.callPackage ./shell.nix { inherit packages; };
release = default.override { release-mode = true; };
};
});
}
17 changes: 12 additions & 5 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
{ pkgs, stdenv, lib, release-mode ? false }:
{ packages
, mkShell
, stdenv
, lib
, cacert
, curl
, ocamlPackages
, git
, h2spec
, release-mode ? false
}:

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

in

with pkgs;

(mkShell {
inputsFrom = lib.attrValues h2Drvs;
Expand All @@ -16,7 +24,6 @@ with pkgs;
curl
ocamlPackages.dune-release
git
opam
] else [ ])
++ (with ocamlPackages; [ merlin ocamlformat utop h2spec ]);
}).overrideAttrs (o: {
Expand Down

0 comments on commit 8ad7db3

Please sign in to comment.