ocaml-pong/flake.nix
2025-04-07 16:02:58 -07:00

39 lines
966 B
Nix

{
description = "";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
overlays = [];
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system overlays;
};
meta = with nixpkgs.lib; {
#homepage = "https://example.com";
#license = [ licenses.gpl3 ];
platforms = [ system ];
#maintainers = with maintainers; [ ];
};
in with pkgs.ocamlPackages; {
devShells.${system}.default = with pkgs; mkShell {
packages = [
ocaml-lsp
ocamlformat
];
inputsFrom = with self.packages.${system}; [ helloworld ];
};
packages.${system} = {
default = self.packages.${system}.helloworld;
helloworld = buildDunePackage rec {
pname = "helloworld";
version = "0.1.0";
src = ./.;
inherit meta;
};
};
};
}