mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 23:06:44 +01:00
19 lines
380 B
Nix
19 lines
380 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
craneLib,
|
|
...
|
|
}:
|
|
let
|
|
version = builtins.readFile ../../.version;
|
|
src = lib.cleanSourceWith {
|
|
src = ../../.;
|
|
filter = path: type: (lib.hasSuffix "\.proto" path) || (craneLib.filterCargoSources path type);
|
|
};
|
|
in
|
|
craneLib.buildPackage {
|
|
pname = "rust";
|
|
inherit src version;
|
|
strictDeps = true;
|
|
nativeBuildInputs = with pkgs; [ protobuf ];
|
|
}
|