diff --git a/flake.nix b/flake.nix index 2916413..645a7e9 100644 --- a/flake.nix +++ b/flake.nix @@ -1,18 +1,26 @@ -# Standalone build for the published repo. Generated by +# Standalone build for this project, as the monorepo sees it. Generated by # platform/tangled/publish/gen-project.nu; edit that template, not this file. # -# The build, the devshell and its hooks, the formatter and the nixpkgs this -# resolves against are shared with every other repo published from the -# monorepo, and live in the nix-project flake. It is callable, so what is -# particular to this project is all that is left to say. +# nix-workspace is a path here, so the monorepo can evaluate its own change to +# it without publishing first, and so the root flake can take this as an +# input and check that it still builds. The published repo gets the same file +# with a Tangled URL, mapped over this one by josh. +# +# The relative path only resolves when this flake is reached through the repo +# root: as a root input, or `nix eval '.?dir=#...'`. { description = "A GNU diffutils-compatible suite of file comparison tools written in Rust"; - inputs.project.url = "git+https://tangled.org/overby.me/nix-project"; + inputs.workspace.url = "path:../../../platform/nix/workspace"; outputs = inputs: - inputs.project ./. { + inputs.workspace ./. { name = "oxidized-diffutils"; description = "A GNU diffutils-compatible suite of file comparison tools written in Rust"; + aliases = { + "cmp" = "diff"; + "sdiff" = "diff"; + "diff3" = "diff"; + }; }; }