tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ntpd-rs: format with nixfmt
seth
2 years ago
243d4e27
dfb5e8dc
+28
-17
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
ntpd-rs
default.nix
+28
-17
pkgs/tools/networking/ntpd-rs/default.nix
···
1
-
{ lib
2
-
, stdenv
3
-
, rustPlatform
4
-
, fetchFromGitHub
5
-
, ntpd-rs
6
-
, installShellFiles
7
-
, pandoc
8
-
, Security
9
-
, nixosTests
10
-
, testers
0
11
}:
12
13
rustPlatform.buildRustPackage rec {
···
23
24
cargoHash = "sha256-Badq3GYr7BoF8VNGGtKTT4/ksuds1zBcSxx5O3vLbzg=";
25
26
-
buildInputs = lib.optionals stdenv.isDarwin [
27
-
Security
0
0
28
];
29
-
nativeBuildInputs = [ pandoc installShellFiles ];
30
31
postPatch = ''
32
substituteInPlace utils/generate-man.sh \
33
-
--replace 'utils/pandoc.sh' 'pandoc'
34
'';
35
36
postBuild = ''
···
51
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
52
'';
53
54
-
outputs = [ "out" "man" ];
0
0
0
55
56
passthru = {
57
tests = {
···
68
homepage = "https://tweedegolf.nl/en/pendulum";
69
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
70
mainProgram = "ntp-ctl";
71
-
license = with licenses; [ mit /* or */ asl20 ];
72
-
maintainers = with maintainers; [ fpletz getchoo ];
0
0
0
0
0
0
73
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
74
broken = stdenv.isDarwin && stdenv.isx86_64;
75
};
···
1
+
{
2
+
lib,
3
+
stdenv,
4
+
rustPlatform,
5
+
fetchFromGitHub,
6
+
ntpd-rs,
7
+
installShellFiles,
8
+
pandoc,
9
+
Security,
10
+
nixosTests,
11
+
testers,
12
}:
13
14
rustPlatform.buildRustPackage rec {
···
24
25
cargoHash = "sha256-Badq3GYr7BoF8VNGGtKTT4/ksuds1zBcSxx5O3vLbzg=";
26
27
+
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
28
+
nativeBuildInputs = [
29
+
pandoc
30
+
installShellFiles
31
];
0
32
33
postPatch = ''
34
substituteInPlace utils/generate-man.sh \
35
+
--replace-fail 'utils/pandoc.sh' 'pandoc'
36
'';
37
38
postBuild = ''
···
53
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
54
'';
55
56
+
outputs = [
57
+
"out"
58
+
"man"
59
+
];
60
61
passthru = {
62
tests = {
···
73
homepage = "https://tweedegolf.nl/en/pendulum";
74
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
75
mainProgram = "ntp-ctl";
76
+
license = with licenses; [
77
+
mit # or
78
+
asl20
79
+
];
80
+
maintainers = with maintainers; [
81
+
fpletz
82
+
getchoo
83
+
];
84
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
85
broken = stdenv.isDarwin && stdenv.isx86_64;
86
};