2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2014-08-18 14:08:18 +01:00
|
|
|
, freetype, fribidi
|
2018-12-31 03:40:47 +00:00
|
|
|
, libXext, libXft, libXpm, libXrandr, libXrender, xorgproto
|
2014-08-18 14:08:18 +01:00
|
|
|
, libXinerama
|
2014-09-10 19:59:54 +01:00
|
|
|
, imlib2 }:
|
2014-08-18 14:08:18 +01:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
with lib;
|
2014-08-18 14:08:18 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fluxbox";
|
2015-02-25 03:53:38 +00:00
|
|
|
version = "1.3.7";
|
2014-08-18 14:08:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/fluxbox/${pname}-${version}.tar.xz";
|
2015-02-25 03:53:38 +00:00
|
|
|
sha256 = "1h1f70y40qd225dqx937vzb4k2cz219agm1zvnjxakn5jkz7b37w";
|
2014-08-18 14:08:18 +01:00
|
|
|
};
|
|
|
|
|
2021-09-29 08:08:51 +01:00
|
|
|
patches = [
|
|
|
|
# Upstream fix to build against gcc-11.
|
|
|
|
(fetchurl {
|
|
|
|
name = "gcc-11.patch";
|
|
|
|
url = "http://git.fluxbox.org/fluxbox.git/patch/?id=22866c4d30f5b289c429c5ca88d800200db4fc4f";
|
|
|
|
sha256 = "1x7126rlmzky51lk370fczssgnjs7i6wgfaikfib9pvn4vv945ai";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2016-05-23 12:28:19 +01:00
|
|
|
|
2018-12-31 03:40:47 +00:00
|
|
|
buildInputs = [ freetype fribidi libXext libXft libXpm libXrandr libXrender xorgproto libXinerama imlib2 ];
|
2016-05-23 12:28:19 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace util/fluxbox-generate_menu.in \
|
|
|
|
--subst-var-by PREFIX "$out"
|
|
|
|
'';
|
2021-01-15 13:21:58 +00:00
|
|
|
|
2015-02-25 03:53:38 +00:00
|
|
|
meta = {
|
2014-08-19 14:40:17 +01:00
|
|
|
description = "Full-featured, light-resource X window manager";
|
2014-08-18 14:08:18 +01:00
|
|
|
longDescription = ''
|
2014-09-10 19:59:54 +01:00
|
|
|
Fluxbox is a X window manager based on Blackbox 0.61.1 window
|
|
|
|
manager sources. It is very light on resources and easy to
|
|
|
|
handle but yet full of features to make an easy, and extremely
|
|
|
|
fast, desktop experience. It is written in C++ and licensed
|
|
|
|
under MIT license.
|
2014-08-18 14:08:18 +01:00
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://fluxbox.org/";
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2014-08-18 14:08:18 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
# Many thanks Jack Ryan from Nix-dev mailing list!
|