diff options
Diffstat (limited to 'tools/tai64dec/default.nix')
| -rw-r--r-- | tools/tai64dec/default.nix | 18 |
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, ... }: | ||
| 2 | let | ||
| 3 | pkgs = self.legacyPackages.${system}; | ||
| 4 | in 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 | } | ||
