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
1
-
{ lib
2
2
-
, stdenv
3
3
-
, rustPlatform
4
4
-
, fetchFromGitHub
5
5
-
, ntpd-rs
6
6
-
, installShellFiles
7
7
-
, pandoc
8
8
-
, Security
9
9
-
, nixosTests
10
10
-
, testers
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
rustPlatform,
5
5
+
fetchFromGitHub,
6
6
+
ntpd-rs,
7
7
+
installShellFiles,
8
8
+
pandoc,
9
9
+
Security,
10
10
+
nixosTests,
11
11
+
testers,
11
12
}:
12
13
13
14
rustPlatform.buildRustPackage rec {
···
23
24
24
25
cargoHash = "sha256-Badq3GYr7BoF8VNGGtKTT4/ksuds1zBcSxx5O3vLbzg=";
25
26
26
26
-
buildInputs = lib.optionals stdenv.isDarwin [
27
27
-
Security
27
27
+
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
28
28
+
nativeBuildInputs = [
29
29
+
pandoc
30
30
+
installShellFiles
28
31
];
29
29
-
nativeBuildInputs = [ pandoc installShellFiles ];
30
32
31
33
postPatch = ''
32
34
substituteInPlace utils/generate-man.sh \
33
33
-
--replace 'utils/pandoc.sh' 'pandoc'
35
35
+
--replace-fail 'utils/pandoc.sh' 'pandoc'
34
36
'';
35
37
36
38
postBuild = ''
···
51
53
installManPage docs/precompiled/man/{ntp.toml.5,ntp-ctl.8,ntp-daemon.8,ntp-metrics-exporter.8}
52
54
'';
53
55
54
54
-
outputs = [ "out" "man" ];
56
56
+
outputs = [
57
57
+
"out"
58
58
+
"man"
59
59
+
];
55
60
56
61
passthru = {
57
62
tests = {
···
68
73
homepage = "https://tweedegolf.nl/en/pendulum";
69
74
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
70
75
mainProgram = "ntp-ctl";
71
71
-
license = with licenses; [ mit /* or */ asl20 ];
72
72
-
maintainers = with maintainers; [ fpletz getchoo ];
76
76
+
license = with licenses; [
77
77
+
mit # or
78
78
+
asl20
79
79
+
];
80
80
+
maintainers = with maintainers; [
81
81
+
fpletz
82
82
+
getchoo
83
83
+
];
73
84
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
74
85
broken = stdenv.isDarwin && stdenv.isx86_64;
75
86
};