summaryrefslogtreecommitdiff
path: root/tools/tai64dec/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-12-11 12:04:03 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-12-11 12:04:03 +0100
commitc5041c5894f559b42e2ae26c09ad793a925168fc (patch)
treeefd5e1ed3fb4b64e945fd3637c5e0833b1d986e3 /tools/tai64dec/default.nix
parent5c48b7e2f3dc8c2afe49cb6e8eeeca0def4d6f59 (diff)
downloadnixos-c5041c5894f559b42e2ae26c09ad793a925168fc.tar
nixos-c5041c5894f559b42e2ae26c09ad793a925168fc.tar.gz
nixos-c5041c5894f559b42e2ae26c09ad793a925168fc.tar.bz2
nixos-c5041c5894f559b42e2ae26c09ad793a925168fc.tar.xz
nixos-c5041c5894f559b42e2ae26c09ad793a925168fc.zip
custom tai64dec
Diffstat (limited to 'tools/tai64dec/default.nix')
-rw-r--r--tools/tai64dec/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/tai64dec/default.nix b/tools/tai64dec/default.nix
new file mode 100644
index 00000000..380c22bf
--- /dev/null
+++ b/tools/tai64dec/default.nix
@@ -0,0 +1,18 @@
1{ system, self, mach-nix, leapseconds, ... }:
2let
3 pkgs = self.legacyPackages.${system};
4in mach-nix.lib.${system}.buildPythonPackage {
5 pname = "tai64dec";
6 src = pkgs.lib.sourceByRegex ./. ["^setup\.py$" "^tai64dec(/[^/]+.*)?$"];
7 version = "0.0.0";
8 ignoreDataOutdated = true;
9
10 requirements = ''
11 leapseconddata
12 '';
13
14 postInstall = ''
15 wrapProgram $out/bin/tai64dec \
16 --set-default LEAPSECONDS_FILE ${leapseconds}
17 '';
18}