Merge pull request #114932 from AndersonTorres/updates

Cleanups

Changed files
+116 -63
pkgs
applications
window-managers
icewm
sawfish
development
libraries
librep
rep-gtk
+13 -8
pkgs/applications/window-managers/icewm/default.nix
···
-
{ lib, stdenv
+
{ lib
+
, stdenv
, fetchFromGitHub
, cmake
, pkg-config
-
, perl
, asciidoc
, expat
, fontconfig
···
, libxcb
, mkfontdir
, pcre
+
, perl
}:
stdenv.mkDerivation rec {
pname = "icewm";
-
version = "2.1.2";
+
version = "2.2.0";
src = fetchFromGitHub {
owner = "bbidulock";
repo = pname;
rev = version;
-
sha256 = "sha256-n9mLD1WrHsO9W1rxopFQENxQEHp/sxuixV3PxLp2vOY=";
+
hash = "sha256-STM8t311lf0xIqs2Onmwg48xgE7V9VZrUfJrUzYRxL4=";
};
-
nativeBuildInputs = [ cmake pkg-config perl asciidoc ];
-
+
nativeBuildInputs = [
+
asciidoc
+
cmake
+
perl
+
pkg-config
+
];
buildInputs = [
expat
fontconfig
···
'';
meta = with lib; {
+
homepage = "https://www.ice-wm.org/";
description = "A simple, lightweight X window manager";
longDescription = ''
IceWM is a window manager for the X Window System. The goal of IceWM is
···
includes an optional external background wallpaper manager with
transparency support, a simple session manager and a system tray.
'';
-
homepage = "https://www.ice-wm.org/";
-
license = licenses.lgpl2;
+
license = licenses.lgpl2Only;
maintainers = [ maintainers.AndersonTorres ];
platforms = platforms.linux;
};
+51 -25
pkgs/applications/window-managers/sawfish/default.nix
···
-
{ lib, stdenv
+
{ lib
+
, stdenv
, fetchurl
-
, pkg-config
-
, which
, autoreconfHook
-
, rep-gtk
-
, pango
, gdk-pixbuf-xlib
+
, gettext
+
, gtk2
, imlib
-
, gettext
-
, texinfo
+
, libICE
+
, libSM
, libXinerama
, libXrandr
, libXtst
-
, libICE
-
, libSM
+
, librep
, makeWrapper
+
, pango
+
, pkg-config
+
, rep-gtk
+
, texinfo
+
, which
}:
stdenv.mkDerivation rec {
···
sha256 = "18p8srqqj9vjffg13qhspfz2gr1h4vfs10qzlv89g76r289iam31";
};
-
nativeBuildInputs = [ autoreconfHook pkg-config ];
-
buildInputs = [ which
-
rep-gtk pango gdk-pixbuf-xlib imlib gettext texinfo
-
libXinerama libXrandr libXtst libICE libSM
-
makeWrapper ];
+
nativeBuildInputs = [
+
autoreconfHook
+
gettext
+
librep
+
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|$(repexecdir)|$(libdir)/rep|g' -i src/Makefile.in
'';
+
strictDeps = true;
+
postInstall = ''
-
for i in $out/lib/sawfish/sawfish-menu $out/bin/sawfish-about \
-
$out/bin/sawfish-client $out/bin/sawfish-config $out/bin/sawfish; do
+
for i in $out/lib/sawfish/sawfish-menu \
+
$out/bin/sawfish-about \
+
$out/bin/sawfish-client \
+
$out/bin/sawfish-config \
+
$out/bin/sawfish; do
wrapProgram $i \
--prefix REP_DL_LOAD_PATH : "$out/lib/rep" \
--set REP_LOAD_PATH "$out/share/sawfish/lisp"
···
'';
meta = with lib; {
+
homepage = "http://sawfish.tuxfamily.org/";
description = "An extensible, Lisp-based window manager";
longDescription = ''
-
Sawfish is an extensible window manager using a Lisp-based scripting language.
-
Its policy is very minimal compared to most window managers. Its aim is simply
-
to manage windows in the most flexible and attractive manner possible.
-
All high-level WM functions are implemented in Lisp for future extensibility
-
or redefinition.
+
Sawfish is an extensible window manager using a Lisp-based scripting
+
language. Its policy is very minimal compared to most window managers. Its
+
aim is simply to manage windows in the most flexible and attractive manner
+
possible. All high-level WM functions are implemented in Lisp for future
+
extensibility or redefinition.
'';
-
homepage = "https://sawfish.fandom.com/wiki/Main_Page";
-
license = licenses.gpl2;
-
maintainers = [ maintainers.AndersonTorres ];
+
license = licenses.gpl2Plus;
+
maintainers = with maintainers; [ AndersonTorres ];
+
platforms = platforms.unix;
};
}
+31 -19
pkgs/development/libraries/librep/default.nix
···
-
{ lib, stdenv, fetchurl
-
, pkg-config, autoreconfHook
-
, readline, texinfo
-
, gdbm, gmp, libffi }:
-
-
with lib;
+
{ lib
+
, stdenv
+
, fetchurl
+
, autoreconfHook
+
, gdbm
+
, gmp
+
, libffi
+
, pkg-config
+
, readline
+
, texinfo
+
}:
stdenv.mkDerivation rec {
pname = "librep";
version = "0.92.7";
-
sourceName = "librep_${version}";
src = fetchurl {
-
url = "https://download.tuxfamily.org/librep/${sourceName}.tar.xz";
+
url = "https://download.tuxfamily.org/${pname}/${pname}_${version}.tar.xz";
sha256 = "1bmcjl1x1rdh514q9z3hzyjmjmwwwkziipjpjsl301bwmiwrd8a8";
};
-
nativeBuildInputs = [ autoreconfHook pkg-config ];
-
buildInputs = [ readline texinfo ];
-
propagatedBuildInputs = [ gdbm gmp libffi ];
+
nativeBuildInputs = [
+
autoreconfHook
+
pkg-config
+
texinfo
+
];
+
buildInputs = [
+
gdbm
+
gmp
+
libffi
+
readline
+
];
setupHook = ./setup-hook.sh;
-
meta = {
+
meta = with lib;{
+
homepage = "http://sawfish.tuxfamily.org/";
description = "Fast, lightweight, and versatile Lisp environment";
longDescription = ''
-
librep is a Lisp system for UNIX, comprising an
-
interpreter, a byte-code compiler, and a virtual
-
machine. It can serve as an application extension language
-
but is also suitable for standalone scripts.
-
'';
-
homepage = "http://sawfish.wikia.com";
-
license = licenses.gpl2;
+
librep is a Lisp system for UNIX, comprising an interpreter, a byte-code
+
compiler, and a virtual machine. It can serve as an application extension
+
language but is also suitable for standalone scripts.
+
'';
+
license = licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
+
platforms = platforms.unix;
};
}
# TODO: investigate fetchFromGithub
+21 -11
pkgs/development/libraries/rep-gtk/default.nix
···
-
{ lib, stdenv, fetchurl, pkg-config, autoreconfHook, librep, gtk2 }:
+
{ lib
+
, stdenv
+
, fetchurl
+
, autoreconfHook
+
, gtk2
+
, librep
+
, pkg-config
+
}:
-
with lib;
stdenv.mkDerivation rec {
-
pname = "rep-gtk";
version = "0.90.8.3";
-
sourceName = "rep-gtk_${version}";
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";
};
-
nativeBuildInputs = [ autoreconfHook pkg-config ];
-
buildInputs = [ ];
-
propagatedBuildInputs = [ librep gtk2 ];
+
nativeBuildInputs = [
+
autoreconfHook
+
pkg-config
+
];
+
buildInputs = [
+
gtk2
+
librep
+
];
patchPhase = ''
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";
-
homepage = "http://sawfish.wikia.com";
-
license = licenses.gpl2;
+
license = licenses.gpl2Plus;
maintainers = [ maintainers.AndersonTorres ];
+
platforms = platforms.unix;
};
}
# TODO: investigate fetchFromGithub