depot/nix/pkgs/datez/default.nix

28 lines
604 B
Nix

{ lib, fetchFromGitHub, rustPlatform, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "datez";
version = "0.1.0";
src = fetchFromGitHub {
owner = "fanf2";
repo = pname;
rev = "${pname}-${version}";
sha256 = "sha256:128aiaffrp39r380wqqwqp3x93pdrwdmj6kf010lyjfyxa2a6i0z";
};
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;
};
}