blob: aa748a0c2b3d54b4fee513457a7c9cb32448da7b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
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;
};
}
|