mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
53 lines
1.7 KiB
Nix
53 lines
1.7 KiB
Nix
{ lib, stdenv, fetchurl, fetchFromGitHub, autoreconfHook
|
|
, libtool, pkgconfig, gtk2, libGLU, file
|
|
}:
|
|
|
|
let
|
|
gtkglarea = stdenv.mkDerivation rec {
|
|
pname = "gtkglarea";
|
|
version = "2.1.0";
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "1pl2vdj6l64j864ilhkq1bcggb3hrlxjwk5m029i7xfjfxc587lf";
|
|
};
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ gtk2 libGLU ];
|
|
hardeningDisable = [ "format" ];
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
|
pname = "fsv";
|
|
version = "0.9-1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcuelenaere";
|
|
repo = "fsv";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0n09jd7yqj18mx6zqbg7kab4idg5llr15g6avafj74fpg1h7iimj";
|
|
};
|
|
|
|
postPatch = ''
|
|
# fix build with gettext 0.20
|
|
sed -i 's/AM_GNU_GETTEXT/AM_GNU_GETTEXT([external])/' configure.in
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook libtool pkgconfig ];
|
|
buildInputs = [ file gtk2 libGLU gtkglarea ];
|
|
|
|
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/mcuelenaere/fsv";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
}
|