mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-24 23:18:25 +01:00
20 lines
380 B
Nix
20 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 ];
|
||
|
}
|