Remove deprecated devShell and defaultPackage
enable = true;
entry = pkgs.lib.mkForce "${rust}/bin/cargo-fmt fmt -- --check --color always";
};
+ markdownlint = {
+ enable = true;
+ };
};
};
for file in *
do
module=$(basename $file .ncl)
- ${self.defaultPackage."${system}"}/bin/nickel doc -f "$module.ncl" \
+ ${self.packages."${system}".default}/bin/nickel doc -f "$module.ncl" \
--output "$out/$module.md"
done
'';
in
rec {
- defaultPackage = packages.build;
packages = {
+ default = packages.build;
build = buildNickel { };
buildWasm = buildNickelWasm { optimize = true; };
dockerImage = buildDocker packages.build; # TODO: docker image should be a passthru
inherit stdlibDoc;
};
- devShell = devShells.stable;
- devShells = forEachRustChannel
+ devShells = {
+ default = devShells.stable;
+ } // (forEachRustChannel
(channel: {
name = channel;
value = buildNickel { inherit channel; isDevShell = true; };
- });
+ }
+ ));
checks = {
# wasm-opt can take long: eschew optimizations in checks
wasm = buildNickelWasm { channel = "stable"; optimize = false; };
- pre-commit = defaultPackage.pre-commit;
+ pre-commit = packages.default.pre-commit;
} // (forEachRustChannel (channel:
{
name = "nickel-against-${channel}-rust-channel";
