depot/nix/pkgs/datez/default.nix

25 lines
557 B
Nix
Raw Normal View History

2021-11-18 21:33:40 +00:00
{ lib, fetchFromGitHub, rustPlatform }:
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
'';
meta = with lib; {
description = "Convert a time into several timezones";
homepage = "https://github.com/fanf2/datez";
license = licenses.cc0;
};
}