depot/third_party/nixpkgs/pkgs/by-name/sw/switch-to-configuration-ng/package.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

36 lines
718 B
Nix

{
buildPackages,
dbus,
lib,
pkg-config,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "switch-to-configuration";
version = "0.1.0";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./Cargo.lock
./Cargo.toml
./build.rs
./src
];
};
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dbus ];
env.SYSTEMD_DBUS_INTERFACE_DIR = "${buildPackages.systemd}/share/dbus-1/interfaces";
meta = {
description = "NixOS switch-to-configuration program";
mainProgram = "switch-to-configuration";
maintainers = with lib.maintainers; [ jmbaur ];
license = lib.licenses.mit;
};
}