crane/extra-tests/alt-store/flake.nix
Ivan Petkov 418ec86477
mkDummySrc: fix cleaning to work with Nix store overrides (#448)
* Turns out if a build is invoked with `--store` then the source
  cleaning filter will observe paths rooted at the alternative store
  which breaks out previous string handling (and results in incorrectly
  ignoring files which should be included)
2023-11-05 18:32:24 +00:00

19 lines
492 B
Nix

{
inputs = {
crane.url = "github:ipetkov/crane";
nixpkgs.follows = "crane/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { flake-utils, crane, ... }: flake-utils.lib.eachDefaultSystem (system:
let
craneLib = crane.lib.${system};
in
{
# https://github.com/ipetkov/crane/issues/446
packages.default = craneLib.buildPackage {
src = craneLib.cleanCargoSource (craneLib.path ../../checks/simple);
};
});
}