blob: 380c22bf6c9b0e5e14ed375ae83ef77cd9f5f5b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{ system, self, mach-nix, leapseconds, ... }:
let
pkgs = self.legacyPackages.${system};
in mach-nix.lib.${system}.buildPythonPackage {
pname = "tai64dec";
src = pkgs.lib.sourceByRegex ./. ["^setup\.py$" "^tai64dec(/[^/]+.*)?$"];
version = "0.0.0";
ignoreDataOutdated = true;
requirements = ''
leapseconddata
'';
postInstall = ''
wrapProgram $out/bin/tai64dec \
--set-default LEAPSECONDS_FILE ${leapseconds}
'';
}
|