mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-02-08 04:11:08 +03:00
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
description = "Reference Grin Wallet.";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/release-23.11";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
forAllSystems = with nixpkgs; lib.genAttrs lib.systems.flakeExposed;
|
|
|
|
nixpkgsFor = forAllSystems (
|
|
system:
|
|
import nixpkgs {
|
|
inherit system;
|
|
overlays = [ self.overlay ];
|
|
}
|
|
);
|
|
in
|
|
{
|
|
overlay =
|
|
final: prev: with final; {
|
|
grin-wallet = pkgs.rustPlatform.buildRustPackage {
|
|
pname = "grin-wallet";
|
|
version = "5.3.0";
|
|
src = ./.;
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
pkg-config
|
|
clang
|
|
];
|
|
buildInputs = [ pkgs.openssl ];
|
|
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
|
|
|
# do not let test results block the build process
|
|
doCheck = false;
|
|
};
|
|
};
|
|
|
|
packages = forAllSystems (system: {
|
|
default = nixpkgsFor.${system}.grin-wallet;
|
|
});
|
|
};
|
|
}
|