10 rustPlatform.buildRustPackage {
11 pname = "switch-to-configuration";
17 lockFile = ./src/Cargo.lock;
18 outputHashes."rust-ini-0.21.1" = "sha256-0nSBhme/g+mVsYdiq0Ash0ek9WEdvbf/b9FRxA7sauk=";
21 nativeBuildInputs = [ pkg-config ];
22 buildInputs = [ dbus ];
24 env.SYSTEMD_DBUS_INTERFACE_DIR = "${buildPackages.systemd}/share/dbus-1/interfaces";
31 echo "Running clippy..."
32 cargo clippy -- -Dwarnings
36 description = "NixOS switch-to-configuration program";
37 mainProgram = "switch-to-configuration";
38 maintainers = with lib.maintainers; [ jmbaur ];
39 license = lib.licenses.mit;