depot/nix/pkgs/datez/default.nix

29 lines
604 B
Nix
Raw Permalink Normal View History

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";
version = "0.2.0";
2021-11-18 21:33:40 +00:00
src = fetchFromGitHub {
owner = "fanf2";
repo = pname;
rev = "${pname}-${version}";
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;
};
}