Unverified Commit 4d3b8edd authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

dua: 2.29.2 -> 2.29.4 (#353603)

* dua: move to by-name

* dua: format

* dua: 2.29.3 -> 2.29.4

Diff: https://github.com/Byron/dua-cli/compare/v2.29.3...v2.29.4

Changelog: https://github.com/Byron/dua-cli/blob/v2.29.4/CHANGELOG.md
parent b5cff9e4
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  versionCheckHook,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
  pname = "dua";
  version = "2.29.3";
  version = "2.29.4";

  src = fetchFromGitHub {
    owner = "Byron";
    repo = "dua-cli";
    rev = "v${version}";
    hash = "sha256-cxMims1b4zOmpRZSn9rovUCnUT66omgNYjDJWuIDnSk=";
    rev = "refs/tags/v${version}";
    hash = "sha256-TVwRz5bAdJMtmhhzfZZ/NuV+YrLcnuK6d86Oj/JmgW4=";
    # Remove unicode file names which leads to different checksums on HFS+
    # vs. other filesystems because of unicode normalisation.
    postFetch = ''
@@ -21,20 +22,33 @@ rustPlatform.buildRustPackage rec {
    '';
  };

  cargoHash = "sha256-/7A1XW6EbOQpXeAlsOe1YoY6MdBQ3kC98TTBMs3Zfy8=";
  cargoHash = "sha256-h4Z0Gb4lf/KXrBxU6gEGcRvuhqjUABsggcv/A+AFclo=";

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    darwin.apple_sdk.frameworks.Foundation
  checkFlags = [
    # Skip interactive tests
    "--skip=interactive::app::tests::journeys_readonly::simple_user_journey_read_only"
    "--skip=interactive::app::tests::journeys_with_writes::basic_user_journey_with_deletion"
    "--skip=interactive::app::tests::unit::it_can_handle_ending_traversal_reaching_top_but_skipping_levels"
    "--skip=interactive::app::tests::unit::it_can_handle_ending_traversal_without_reaching_the_top"
  ];

  doCheck = false;
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
  meta = {
    description = "Tool to conveniently learn about the disk usage of directories";
    homepage = "https://github.com/Byron/dua-cli";
    changelog = "https://github.com/Byron/dua-cli/blob/v${version}/CHANGELOG.md";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ figsoda killercup ];
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [
      figsoda
      killercup
    ];
    mainProgram = "dua";
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -4698,8 +4698,6 @@ with pkgs;
  dtrx = callPackage ../tools/compression/dtrx { };
  dua = callPackage ../tools/misc/dua { };
  duf = callPackage ../tools/misc/duf { };
  dum = callPackage ../development/tools/dum { };