25 lines
557 B
Nix
25 lines
557 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|