Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / sw / switch-to-configuration-ng / package.nix
blobaa748a0c2b3d54b4fee513457a7c9cb32448da7b
2   buildPackages,
3   dbus,
4   lib,
5   pkg-config,
6   rustPlatform,
7 }:
9 rustPlatform.buildRustPackage {
10   pname = "switch-to-configuration";
11   version = "0.1.0";
13   src = lib.fileset.toSource {
14     root = ./.;
15     fileset = lib.fileset.unions [
16       ./Cargo.lock
17       ./Cargo.toml
18       ./build.rs
19       ./src
20     ];
21   };
23   cargoLock.lockFile = ./Cargo.lock;
25   nativeBuildInputs = [ pkg-config ];
26   buildInputs = [ dbus ];
28   env.SYSTEMD_DBUS_INTERFACE_DIR = "${buildPackages.systemd}/share/dbus-1/interfaces";
30   meta = {
31     description = "NixOS switch-to-configuration program";
32     mainProgram = "switch-to-configuration";
33     maintainers = with lib.maintainers; [ jmbaur ];
34     license = lib.licenses.mit;
35   };