Merge pull request #114932 from AndersonTorres/updates

Cleanups
wip/yesman
Anderson Torres 3 years ago committed by GitHub
commit 25bcf382c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      pkgs/applications/window-managers/icewm/default.nix
  2. 76
      pkgs/applications/window-managers/sawfish/default.nix
  3. 50
      pkgs/development/libraries/librep/default.nix
  4. 32
      pkgs/development/libraries/rep-gtk/default.nix

@ -1,8 +1,8 @@
{ lib, stdenv { lib
, stdenv
, fetchFromGitHub , fetchFromGitHub
, cmake , cmake
, pkg-config , pkg-config
, perl
, asciidoc , asciidoc
, expat , expat
, fontconfig , fontconfig
@ -34,21 +34,26 @@
, libxcb , libxcb
, mkfontdir , mkfontdir
, pcre , pcre
, perl
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "icewm"; pname = "icewm";
version = "2.1.2"; version = "2.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bbidulock"; owner = "bbidulock";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-n9mLD1WrHsO9W1rxopFQENxQEHp/sxuixV3PxLp2vOY="; hash = "sha256-STM8t311lf0xIqs2Onmwg48xgE7V9VZrUfJrUzYRxL4=";
}; };
nativeBuildInputs = [ cmake pkg-config perl asciidoc ]; nativeBuildInputs = [
asciidoc
cmake
perl
pkg-config
];
buildInputs = [ buildInputs = [
expat expat
fontconfig fontconfig
@ -90,6 +95,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://www.ice-wm.org/";
description = "A simple, lightweight X window manager"; description = "A simple, lightweight X window manager";
longDescription = '' longDescription = ''
IceWM is a window manager for the X Window System. The goal of IceWM is IceWM is a window manager for the X Window System. The goal of IceWM is
@ -104,8 +110,7 @@ stdenv.mkDerivation rec {
includes an optional external background wallpaper manager with includes an optional external background wallpaper manager with
transparency support, a simple session manager and a system tray. transparency support, a simple session manager and a system tray.
''; '';
homepage = "https://www.ice-wm.org/"; license = licenses.lgpl2Only;
license = licenses.lgpl2;
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux; platforms = platforms.linux;
}; };

@ -1,20 +1,23 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, pkg-config
, which
, autoreconfHook , autoreconfHook
, rep-gtk
, pango
, gdk-pixbuf-xlib , gdk-pixbuf-xlib
, imlib
, gettext , gettext
, texinfo , gtk2
, imlib
, libICE
, libSM
, libXinerama , libXinerama
, libXrandr , libXrandr
, libXtst , libXtst
, libICE , librep
, libSM
, makeWrapper , makeWrapper
, pango
, pkg-config
, rep-gtk
, texinfo
, which
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -26,20 +29,42 @@ stdenv.mkDerivation rec {
sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31"; sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [
buildInputs = [ which autoreconfHook
rep-gtk pango gdk-pixbuf-xlib imlib gettext texinfo gettext
libXinerama libXrandr libXtst libICE libSM librep
makeWrapper ]; makeWrapper
pkg-config
texinfo
which
];
buildInputs = [
gdk-pixbuf-xlib
gtk2
imlib
libICE
libSM
libXinerama
libXrandr
libXtst
librep
pango
rep-gtk
];
patchPhase = '' postPatch = ''
sed -e 's|REP_DL_LOAD_PATH=|REP_DL_LOAD_PATH=$(REP_DL_LOAD_PATH):|g' -i Makedefs.in sed -e 's|REP_DL_LOAD_PATH=|REP_DL_LOAD_PATH=$(REP_DL_LOAD_PATH):|g' -i Makedefs.in
sed -e 's|$(repexecdir)|$(libdir)/rep|g' -i src/Makefile.in sed -e 's|$(repexecdir)|$(libdir)/rep|g' -i src/Makefile.in
''; '';
strictDeps = true;
postInstall = '' postInstall = ''
for i in $out/lib/sawfish/sawfish-menu $out/bin/sawfish-about \ for i in $out/lib/sawfish/sawfish-menu \
$out/bin/sawfish-client $out/bin/sawfish-config $out/bin/sawfish; do $out/bin/sawfish-about \
$out/bin/sawfish-client \
$out/bin/sawfish-config \
$out/bin/sawfish; do
wrapProgram $i \ wrapProgram $i \
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \ --prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
--set REP_LOAD_PATH "$out/share/sawfish/lisp" --set REP_LOAD_PATH "$out/share/sawfish/lisp"
@ -47,16 +72,17 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "http://sawfish.tuxfamily.org/";
description = "An extensible, Lisp-based window manager"; description = "An extensible, Lisp-based window manager";
longDescription = '' longDescription = ''
Sawfish is an extensible window manager using a Lisp-based scripting language. Sawfish is an extensible window manager using a Lisp-based scripting
Its policy is very minimal compared to most window managers. Its aim is simply language. Its policy is very minimal compared to most window managers. Its
to manage windows in the most flexible and attractive manner possible. aim is simply to manage windows in the most flexible and attractive manner
All high-level WM functions are implemented in Lisp for future extensibility possible. All high-level WM functions are implemented in Lisp for future
or redefinition. extensibility or redefinition.
''; '';
homepage = "https://sawfish.fandom.com/wiki/Main_Page"; license = licenses.gpl2Plus;
license = licenses.gpl2; maintainers = with maintainers; [ AndersonTorres ];
maintainers = [ maintainers.AndersonTorres ]; platforms = platforms.unix;
}; };
} }

@ -1,37 +1,49 @@
{ lib, stdenv, fetchurl { lib
, pkg-config, autoreconfHook , stdenv
, readline, texinfo , fetchurl
, gdbm, gmp, libffi }: , autoreconfHook
, gdbm
with lib; , gmp
, libffi
, pkg-config
, readline
, texinfo
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "librep"; pname = "librep";
version = "0.92.7"; version = "0.92.7";
sourceName = "librep_${version}";
src = fetchurl { src = fetchurl {
url = "https://download.tuxfamily.org/librep/${sourceName}.tar.xz"; url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8"; sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [
buildInputs = [ readline texinfo ]; autoreconfHook
propagatedBuildInputs = [ gdbm gmp libffi ]; pkg-config
texinfo
];
buildInputs = [
gdbm
gmp
libffi
readline
];
setupHook = ./setup-hook.sh; setupHook = ./setup-hook.sh;
meta = { meta = with lib;{
homepage = "http://sawfish.tuxfamily.org/";
description = "Fast, lightweight, and versatile Lisp environment"; description = "Fast, lightweight, and versatile Lisp environment";
longDescription = '' longDescription = ''
librep is a Lisp system for UNIX, comprising an librep is a Lisp system for UNIX, comprising an interpreter, a byte-code
interpreter, a byte-code compiler, and a virtual compiler, and a virtual machine. It can serve as an application extension
machine. It can serve as an application extension language language but is also suitable for standalone scripts.
but is also suitable for standalone scripts. '';
''; license = licenses.gpl2Plus;
homepage = "http://sawfish.wikia.com";
license = licenses.gpl2;
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix;
}; };
} }
# TODO: investigate fetchFromGithub # TODO: investigate fetchFromGithub

@ -1,30 +1,40 @@
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, librep, gtk2 }: { lib
, stdenv
, fetchurl
, autoreconfHook
, gtk2
, librep
, pkg-config
}:
with lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "rep-gtk"; pname = "rep-gtk";
version = "0.90.8.3"; version = "0.90.8.3";
sourceName = "rep-gtk_${version}";
src = fetchurl { src = fetchurl {
url = "https://download.tuxfamily.org/librep/rep-gtk/${sourceName}.tar.xz"; url = "https://download.tuxfamily.org/librep/${pname}/${pname}_${version}.tar.xz";
sha256 = "0hgkkywm8zczir3lqr727bn7ybgg71x9cwj1av8fykkr8pdpard9"; sha256 = "0hgkkywm8zczir3lqr727bn7ybgg71x9cwj1av8fykkr8pdpard9";
}; };
nativeBuildInputs = [ autoreconfHook pkg-config ]; nativeBuildInputs = [
buildInputs = [ ]; autoreconfHook
propagatedBuildInputs = [ librep gtk2 ]; pkg-config
];
buildInputs = [
gtk2
librep
];
patchPhase = '' patchPhase = ''
sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in sed -e 's|installdir=$(repexecdir)|installdir=$(libdir)/rep|g' -i Makefile.in
''; '';
meta = { meta = with lib; {
homepage = "http://sawfish.tuxfamily.org";
description = "GTK bindings for librep"; description = "GTK bindings for librep";
homepage = "http://sawfish.wikia.com"; license = licenses.gpl2Plus;
license = licenses.gpl2;
maintainers = [ maintainers.AndersonTorres ]; maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.unix;
}; };
} }
# TODO: investigate fetchFromGithub # TODO: investigate fetchFromGithub

Loading…
Cancel
Save