2023-01-15 02:54:02 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, libiconv }:
|
2021-11-18 21:33:40 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "datez";
|
2023-02-04 02:15:30 +00:00
|
|
|
version = "0.2.0";
|
2021-11-18 21:33:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fanf2";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2023-02-04 02:15:30 +00:00
|
|
|
sha256 = "sha256:1vv7yip64fy9rhdzvzsax2d3npilhxwqnqkk0b8izq1hvrzx7r6l";
|
2021-11-18 21:33:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
postPatch = ''
|
|
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
|
|
'';
|
|
|
|
|
2023-01-15 02:54:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
libiconv
|
|
|
|
];
|
|
|
|
|
2021-11-18 21:33:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert a time into several timezones";
|
|
|
|
homepage = "https://github.com/fanf2/datez";
|
|
|
|
license = licenses.cc0;
|
|
|
|
};
|
|
|
|
}
|