mirror of
https://codeberg.org/icewind/mitemp-prometheus.git
synced 2026-06-05 01:54:08 +02:00
fmt
This commit is contained in:
parent
8be6c6fe27
commit
95b0cb6c38
3 changed files with 43 additions and 42 deletions
56
package.nix
56
package.nix
|
|
@ -1,38 +1,38 @@
|
|||
{ stdenv
|
||||
, rustPlatform
|
||||
, lib
|
||||
, pkg-config
|
||||
, dbus
|
||||
}:
|
||||
let
|
||||
{
|
||||
stdenv,
|
||||
rustPlatform,
|
||||
lib,
|
||||
pkg-config,
|
||||
dbus,
|
||||
}: let
|
||||
inherit (lib.sources) sourceByRegex;
|
||||
inherit (builtins) fromTOML readFile;
|
||||
src = sourceByRegex ./. [ "Cargo.*" "(src)(/.*)?" ];
|
||||
src = sourceByRegex ./. ["Cargo.*" "(src)(/.*)?"];
|
||||
cargoToml = (fromTOML (readFile ./Cargo.toml)).package;
|
||||
in
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = cargoToml.name;
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = cargoToml.name;
|
||||
|
||||
inherit src;
|
||||
inherit (cargoToml) version;
|
||||
inherit src;
|
||||
inherit (cargoToml) version;
|
||||
|
||||
buildInputs = [
|
||||
dbus
|
||||
];
|
||||
buildInputs = [
|
||||
dbus
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
preInstall = ''
|
||||
mkdir -p $out/share/dbus-1/system.d
|
||||
cp ${./dbus-bluetooth.xml} $out/share/dbus-1/system.d/dbus-bluetooth.conf
|
||||
'';
|
||||
preInstall = ''
|
||||
mkdir -p $out/share/dbus-1/system.d
|
||||
cp ${./dbus-bluetooth.xml} $out/share/dbus-1/system.d/dbus-bluetooth.conf
|
||||
'';
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"btleplug-0.11.6" = "sha256-Y9QZ6er/zaXALiQUUw8mMvzg15Dhz9NsWQ2WAM/ouh0=";
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"btleplug-0.11.6" = "sha256-Y9QZ6er/zaXALiQUUw8mMvzg15Dhz9NsWQ2WAM/ouh0=";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue