Skip to content

Commit

Permalink
chore: switch to flakes
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
  • Loading branch information
rgrinberg committed Apr 11, 2024
1 parent 8b67e91 commit de7057c
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 297 deletions.
3 changes: 0 additions & 3 deletions default.nix

This file was deleted.

76 changes: 76 additions & 0 deletions flake.lock

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

32 changes: 32 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
description = "ocaml-re flake";

inputs.nix-filter.url = "github:numtide/nix-filter";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:nixos/nixpkgs";

outputs = { self, nixpkgs, flake-utils, nix-filter }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
inherit (pkgs.ocamlPackages) buildDunePackage;
in
rec {
packages = rec {
default = re;
re = buildDunePackage {
pname = "re";
version = "n/a";
src = ./.;
duneVersion = "3";
propagatedBuildInputs = with pkgs.ocamlPackages; [ seq ];
checkInputs = with pkgs.ocamlPackages; [ ounit ];
doCheck = true;
};
};
devShells.default = pkgs.mkShell {
inputsFrom = pkgs.lib.attrValues packages;
buildInputs = with pkgs.ocamlPackages; [ ocaml-lsp core_bench ];
};
});
}
31 changes: 0 additions & 31 deletions nix/default.nix

This file was deleted.

246 changes: 0 additions & 246 deletions nix/opam-selection.nix

This file was deleted.

1 change: 0 additions & 1 deletion nix/opam2nix.nix

This file was deleted.

Loading

0 comments on commit de7057c

Please sign in to comment.