ntpd-rs: format with nixfmt
This commit is contained in:
parent
dfb5e8dcab
commit
243d4e27ec
@ -1,13 +1,14 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenv
|
lib,
|
||||||
, rustPlatform
|
stdenv,
|
||||||
, fetchFromGitHub
|
rustPlatform,
|
||||||
, ntpd-rs
|
fetchFromGitHub,
|
||||||
, installShellFiles
|
ntpd-rs,
|
||||||
, pandoc
|
installShellFiles,
|
||||||
, Security
|
pandoc,
|
||||||
, nixosTests
|
Security,
|
||||||
, testers
|
nixosTests,
|
||||||
|
testers,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@ -23,14 +24,15 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
cargoHash = "sha256-Badq3GYr7BoF8VNGGtKTT4/ksuds1zBcSxx5O3vLbzg=";
|
cargoHash = "sha256-Badq3GYr7BoF8VNGGtKTT4/ksuds1zBcSxx5O3vLbzg=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
||||||
Security
|
nativeBuildInputs = [
|
||||||
|
pandoc
|
||||||
|
installShellFiles
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [ pandoc installShellFiles ];
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace utils/generate-man.sh \
|
substituteInPlace utils/generate-man.sh \
|
||||||
--replace 'utils/pandoc.sh' 'pandoc'
|
--replace-fail 'utils/pandoc.sh' 'pandoc'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
@ -51,7 +53,10 @@ rustPlatform.buildRustPackage rec {
|
|||||||
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
|
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"man"
|
||||||
|
];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
tests = {
|
tests = {
|
||||||
@ -68,8 +73,14 @@ rustPlatform.buildRustPackage rec {
|
|||||||
homepage = "https://tweedegolf.nl/en/pendulum";
|
homepage = "https://tweedegolf.nl/en/pendulum";
|
||||||
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
|
||||||
mainProgram = "ntp-ctl";
|
mainProgram = "ntp-ctl";
|
||||||
license = with licenses; [ mit /* or */ asl20 ];
|
license = with licenses; [
|
||||||
maintainers = with maintainers; [ fpletz getchoo ];
|
mit # or
|
||||||
|
asl20
|
||||||
|
];
|
||||||
|
maintainers = with maintainers; [
|
||||||
|
fpletz
|
||||||
|
getchoo
|
||||||
|
];
|
||||||
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
|
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
|
||||||
broken = stdenv.isDarwin && stdenv.isx86_64;
|
broken = stdenv.isDarwin && stdenv.isx86_64;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user