summary refs log tree commit diff
path: root/pkgs/tools/misc/diskonaut/default.nix
blob: b0a413da8c04820e1770ba6a45f4675b7d05bfbb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "diskonaut";
  version = "0.3.0";

  src = fetchFromGitHub {
    owner = "imsnif";
    repo = "diskonaut";
    rev = version;
    sha256 = "0vnmch2cac0j9b44vlcpqnayqhfdfdwvfa01bn7lwcyrcln5cd0z";
  };

  cargoSha256 = "03hqdg6pnfxnhwk0xwhwmbrk4dicjpjllbbai56a3391xac5wmi6";

  # some tests fail due to non-portable (in terms of filesystems) measurements of block sizes
  # try to re-enable tests once actual-file-size is added
  # see https://github.com/imsnif/diskonaut/issues/50 for more info
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Terminal disk space navigator";
    homepage = "https://github.com/imsnif/diskonaut";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = with maintainers; [ evanjs ];
  };
}