mirror of
https://github.com/pythops/bluetui.git
synced 2026-05-06 21:42:28 +08:00
* Expose bluetui package in legacyPackages * git ignore result directory for nix build * Treat result as a file in gitignore
26 lines
504 B
Nix
26 lines
504 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
dbus,
|
|
pkg-config,
|
|
}:
|
|
let
|
|
cargo = lib.importTOML ./Cargo.toml;
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = cargo.package.name;
|
|
version = cargo.package.version;
|
|
src = ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
buildInputs = [dbus];
|
|
nativeBuildInputs = [pkg-config];
|
|
|
|
meta = {
|
|
description = cargo.package.description;
|
|
homepage = cargo.package.homepage;
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [samuel-martineau];
|
|
};
|
|
}
|