28 lines
604 B
Nix
28 lines
604 B
Nix
{ lib, fetchFromGitHub, rustPlatform, libiconv }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "datez";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fanf2";
|
|
repo = pname;
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256:1vv7yip64fy9rhdzvzsax2d3npilhxwqnqkk0b8izq1hvrzx7r6l";
|
|
};
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
postPatch = ''
|
|
cp ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
buildInputs = [
|
|
libiconv
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Convert a time into several timezones";
|
|
homepage = "https://github.com/fanf2/datez";
|
|
license = licenses.cc0;
|
|
};
|
|
}
|