Reorganize flake, remove unnecessary prebuild phase
This commit is contained in:
11
flake.nix
11
flake.nix
@@ -7,21 +7,18 @@
|
|||||||
outputs = {self, nixpkgs}:
|
outputs = {self, nixpkgs}:
|
||||||
let
|
let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||||
|
nativeOcamlInputs = with pkgs.ocamlPackages; [menhir merlin dune_3];
|
||||||
|
nativeInputs = with pkgs; [ocaml];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages.x86_64-linux.default = pkgs.ocamlPackages.buildDunePackage {
|
packages.x86_64-linux.default = pkgs.ocamlPackages.buildDunePackage {
|
||||||
pname = "ollisp";
|
pname = "ollisp";
|
||||||
version = "0.0.1";
|
version = "0.0.1";
|
||||||
src = pkgs.lib.cleanSource ./.;
|
src = pkgs.lib.cleanSource ./.;
|
||||||
preBuildPhase = "ls -R";
|
nativeBuildInputs = nativeInputs ++ nativeOcamlInputs;
|
||||||
nativeBuildInputs = with pkgs; [
|
|
||||||
ocamlPackages.menhir
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
devShells.x86_64-linux.default = pkgs.mkShell {
|
devShells.x86_64-linux.default = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs.ocamlPackages; [
|
nativeBuildInputs = nativeInputs ++ nativeOcamlInputs;
|
||||||
menhir merlin dune_3
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user