mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
28 lines
404 B
Nix
28 lines
404 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
}:
|
|
|
|
let
|
|
cargo = (fromTOML (builtins.readFile ./Cargo.toml));
|
|
in
|
|
|
|
pkgs.rustPlatform.buildRustPackage {
|
|
pname = cargo.package.name;
|
|
version = cargo.package.version;
|
|
|
|
src = lib.cleanSource ./.;
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
clang
|
|
pkg-config
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
buildInputs = with pkgs; [
|
|
libnotify.dev
|
|
];
|
|
}
|