mirror of
https://github.com/ipetkov/crane.git
synced 2024-11-26 09:08:57 +03:00
418ec86477
* 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)
19 lines
492 B
Nix
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);
|
|
};
|
|
});
|
|
}
|