Merge pull request #168553 from auroraanna/didu

This commit is contained in:
Sandro 2022-07-24 18:12:58 +02:00 committed by GitHub
commit 9c0f0e88ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,23 @@
{ lib, rustPlatform, fetchFromGitea }:
rustPlatform.buildRustPackage rec {
pname = "didu";
version = "2.5.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "annaaurora";
repo = pname;
rev = "v${version}";
sha256 = "szYWRN1NZbfpshipwMMJSWJw/NG4w7I+aqwtmqpT0R0=";
};
cargoSha256 = "O1kkfrwv7xiOh3wCV/ce6cqpkMPRRzcXOFESYMAhiKA=";
meta = with lib; {
description = "Duration conversion between units";
homepage = "https://codeberg.org/annaaurora/didu";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ annaaurora ];
};
}

View File

@ -520,6 +520,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AppKit;
};
didu = callPackage ../tools/misc/didu { };
diffPlugins = (callPackage ../build-support/plugins.nix {}).diffPlugins;
dieHook = makeSetupHook {} ../build-support/setup-hooks/die.sh;