2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchFromGitHub, autoreconfHook
|
2021-01-17 02:09:27 +00:00
|
|
|
, libtool, pkg-config, gtk2, libGLU, file
|
2018-12-31 01:21:14 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
gtkglarea = stdenv.mkDerivation rec {
|
2019-04-25 07:46:07 +01:00
|
|
|
pname = "gtkglarea";
|
2018-12-31 01:21:14 +00:00
|
|
|
version = "2.1.0";
|
|
|
|
src = fetchurl {
|
2021-01-15 05:42:41 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-12-31 01:21:14 +00:00
|
|
|
sha256 = "1pl2vdj6l64j864ilhkq1bcggb3hrlxjwk5m029i7xfjfxc587lf";
|
|
|
|
};
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-12-31 01:21:14 +00:00
|
|
|
buildInputs = [ gtk2 libGLU ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-04-25 07:46:07 +01:00
|
|
|
pname = "fsv";
|
2018-12-31 01:21:14 +00:00
|
|
|
version = "0.9-1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-10-26 04:08:40 +00:00
|
|
|
owner = "mcuelenaere";
|
2018-12-31 01:21:14 +00:00
|
|
|
repo = "fsv";
|
2019-04-25 07:46:07 +01:00
|
|
|
rev = "${pname}-${version}";
|
2018-12-31 01:21:14 +00:00
|
|
|
sha256 = "0n09jd7yqj18mx6zqbg7kab4idg5llr15g6avafj74fpg1h7iimj";
|
|
|
|
};
|
|
|
|
|
2019-12-17 23:26:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
# fix build with gettext 0.20
|
|
|
|
sed -i 's/AM_GNU_GETTEXT/AM_GNU_GETTEXT([external])/' configure.in
|
|
|
|
'';
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook libtool pkg-config ];
|
2018-12-31 01:21:14 +00:00
|
|
|
buildInputs = [ file gtk2 libGLU gtkglarea ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "File system visualizer in cyberspace";
|
2018-12-31 01:21:14 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mcuelenaere/fsv";
|
2018-12-31 01:21:14 +00:00
|
|
|
license = licenses.lgpl2;
|
2019-06-06 03:54:08 +01:00
|
|
|
platforms = platforms.linux;
|
2018-12-31 01:21:14 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|