~ruther/mpris-ctl

mpris-ctl/default.nix -rw-r--r-- 714 bytes
c5731a17 — Rutherther chore: remove naersk dependency 1 year, 5 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
38
39
40
41
{ lib
, stdenv
, clangStdenv
, rustPlatform
, hostPlatform
, targetPlatform
, pkg-config
, dbus
, rustfmt
, cargo
, rustc
}:

let
  cargoToml = (builtins.fromTOML (builtins.readFile ./Cargo.toml));
in
rustPlatform.buildRustPackage rec {
  name = "${cargoToml.package.name}";
  version = "${cargoToml.package.version}";

  src = ./.;
  cargoHash = "sha256-ZpQXclS9jota0IqQBmvTNp1JXZOq0xD7dAP1k9Cr9ok=";

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

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

  meta = {
    description = cargoToml.package.description;
    homepage = cargoToml.package.homepage;
    license = [ lib.licenses.mit ];
    maintainers = [];
  };
}
Do not follow this link