diff --git a/pkgs/tools/misc/didu/default.nix b/pkgs/tools/misc/didu/default.nix new file mode 100644 index 000000000000..8a29cdb2d346 --- /dev/null +++ b/pkgs/tools/misc/didu/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e9445d0f3093..5dea2860e0a8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -516,6 +516,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;