gpl #20
11
flake.nix
11
flake.nix
|
@ -99,7 +99,6 @@
|
|||
openssl
|
||||
lua54Packages.lua
|
||||
];
|
||||
|
||||
cargo_toml = craneLib.cleanCargoToml {cargoToml = ./Cargo.toml;};
|
||||
pname = cargo_toml.package.name;
|
||||
|
||||
|
@ -107,7 +106,15 @@
|
|||
craneBuild = craneLib.buildPackage {
|
||||
inherit nativeBuildInputs buildInputs;
|
||||
|
||||
src = craneLib.cleanCargoSource ./.;
|
||||
src = let
|
||||
trixyFilter = path: _type: builtins.match ".*tri$" path != null;
|
||||
markdownOrCargo = path: type:
|
||||
(trixyFilter path type) || (craneLib.filterCargoSources path type);
|
||||
in
|
||||
pkgs.lib.cleanSourceWith {
|
||||
src = craneLib.path ./.;
|
||||
filter = markdownOrCargo;
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
};
|
||||
|
|
Reference in New Issue