about summary refs log tree commit diff
path: root/pkgs/applications/misc/fsv/default.nix
blob: e49610116f71d235ec1e90df5ed47533707350da (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, cglm
, gtk3
, libepoxy
, libGLU
}:

stdenv.mkDerivation rec {
  pname   = "fsv";
  version = "3.0";

  src = fetchFromGitHub {
    owner = "jabl";
    repo  = "fsv";
    rev   = "${pname}-${version}";
    hash  = "sha256-fxsA3qcBPvK4H5P4juGTe6eg1lkygvzFpNW36B9lsE4=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    cglm
    gtk3
    libepoxy
    libGLU
  ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    cp src/fsv $out/bin/fsv

    runHook postInstall
  '';

  meta = with lib; {
    description     = "File system visualizer in cyberspace";
    longDescription = ''
      fsv (pronounced eff-ess-vee) is a file system visualizer in cyberspace.
      It lays out files and directories in three dimensions, geometrically
      representing the file system hierarchy to allow visual overview
      and analysis. fsv can visualize a modest home directory, a workstation's
      hard drive, or any arbitrarily large collection of files, limited only
      by the host computer's memory and graphics hardware.
    '';
    homepage    = "https://github.com/jabl/fsv";
    license     = licenses.lgpl2;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ rnhmjoj ];
    mainProgram = "fsv";
  };
}