~ruther/nixos-config

ref: 65631fe7158253199eb7d1ad180d17e4d9d57704 nixos-config/pkgs/rutherther/mpris-ctl.nix -rw-r--r-- 621 bytes
65631fe7 — Frantisek Bohacek feat: add support for Guix 7 months ago
                                                                                
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
37
{ pkgs
, rustPlatform
, pkg-config
, dbus
, rustfmt
, cargo
, rustc
}:

rustPlatform.buildRustPackage rec {
  name = "mpris-ctl";
  version = "0.1.0";

  src = pkgs.fetchFromGitHub {
    owner = "Rutherther";
    repo = "mpris-ctl";
    rev = "c5731a17d99553d79810791e5a5aff61344669d5";
    hash = "sha256-vxNpZ6VsGxqFoxl1IpWTqU4iS2g4rfepLXuzPrpvbko=";
  };

  cargoHash = "sha256-QvnaySHqErWuwPBzd1l/asfBbt86c53TKwIyFBvBwQ0=";

  nativeBuildInputs = [
    rustfmt
    pkg-config
    cargo
    rustc
    dbus
  ];

  checkInputs = [ cargo rustc dbus ];
  doCheck = true;

  meta = {
    mainProgram = "mpris-ctl";
  };
}
Do not follow this link