diff options
author | Robert Helgesson <robert@rycee.net> | 2020-07-18 18:59:44 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-07-18 19:48:27 +0200 |
commit | 60c9c3a2338edc81b7d5bd9d441f502cb510a536 (patch) | |
tree | 664c058ab77ffb68b8459d896b1c539ff375a9d2 /pkgs/os-specific | |
parent | d05ea5c67f8bd2794b40d109b49afa68002c28df (diff) |
sd-switch: init at 0.1.0
PR #93432
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/sd-switch/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/sd-switch/default.nix b/pkgs/os-specific/linux/sd-switch/default.nix new file mode 100644 index 0000000000000..df929278e924c --- /dev/null +++ b/pkgs/os-specific/linux/sd-switch/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitLab, rustPlatform, pkg-config, dbus }: + +rustPlatform.buildRustPackage rec { + pname = "sd-switch"; + version = "0.1.0"; + + src = fetchFromGitLab { + owner = "rycee"; + repo = pname; + rev = version; + sha256 = "0njihfqvvp4lm2572sw5xadwg3nrvx2i1qrfm7fi0i3v5pxdc7g0"; + }; + + cargoSha256 = "0ba2j0v2z90fivwdr5akdrsz9f479gz20yh85yiy05rkjhjy8cvv"; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ dbus ]; + + meta = with stdenv.lib; { + description = "A systemd unit switcher for Home Manager"; + homepage = "https://gitlab.com/rycee/sd-switch"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ rycee ]; + platforms = platforms.linux; + }; +} |