Merge pull request #17322 from RamKromberg/init/motif

motif: init at 2.3.6 & nedit: 5.6 -> 5.6a
This commit is contained in:
Franz Pletz 2016-07-28 03:53:38 +02:00 committed by GitHub
commit 996c9837fa
5 changed files with 77 additions and 5 deletions

View File

@ -18,6 +18,7 @@ in
./i3.nix
./jwm.nix
./metacity.nix
./mwm.nix
./openbox.nix
./pekwm.nix
./notion.nix

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.mwm;
in
{
###### interface
options = {
services.xserver.windowManager.mwm.enable = mkEnableOption "mwm";
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "mwm";
start = ''
${pkgs.motif}/bin/mwm &
waitPID=$!
'';
};
environment.systemPackages = [ pkgs.motif ];
};
}

View File

@ -3,11 +3,11 @@
assert stdenv.isLinux;
stdenv.mkDerivation rec {
name = "nedit-5.6";
name = "nedit-5.6a";
src = fetchurl {
url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
sha256 = "023hwpqc57mnzvg6p7jda6193afgjzxzajlhwhqvk3jq2kdv6zna";
sha256 = "1v8y8vwj3kn91crsddqkz843y6csgw7wkjnd3zdcb4bcrf1pjrsk";
};
buildInputs = [ xlibsWrapper motif libXpm ];

View File

@ -0,0 +1,46 @@
{ stdenv, fetchurl, pkgconfig, libtool
, xlibsWrapper, xbitmaps, libXrender, libXmu, libXt
, expat, libjpeg, libpng, libiconv
, flex
, libXp, libXau
, demoSupport ? false, autoconf, automake
}:
# refer to the gentoo package
stdenv.mkDerivation rec {
name = "motif-${version}";
version = "2.3.6";
src = fetchurl {
url = "mirror://sourceforge/motif/${name}.tar.gz";
sha256 = "1ksqbp0bzdw6wcrx8s4hj4ivvxmw54hz85l2xfigb87cxmmhx0gs";
};
buildInputs = [
pkgconfig libtool
xlibsWrapper xbitmaps libXrender libXmu libXt
expat libjpeg libpng libiconv
] ++ stdenv.lib.optionals (!demoSupport) [ autoconf automake ];
nativeBuildInputs = [ flex ];
propagatedBuildInputs = [ libXp libXau ];
makeFlags = [ "CFLAGS=-fno-strict-aliasing" ];
patchPhase = ''
rm lib/Xm/Xm.h
echo -e '"The X.Org Foundation"\t\t\t\t\tpc' >>bindings/xmbind.alias
'' + stdenv.lib.optionalString (!demoSupport)
''
sed -i -e '/^SUBDIRS/{:x;/\\$/{N;bx;};s/[ \t\n\\]*demos//;}' Makefile.am
'';
meta = with stdenv.lib; {
homepage = http://motif.ics.com;
description = "Unix standard widget-toolkit and window-manager";
platforms = with platforms; linux;
license = with licenses; [ lgpl21 ];
maintainers = with maintainers; [ ];
};
}

View File

@ -13881,6 +13881,8 @@ in
mopidy-musicbox-webclient = callPackage ../applications/audio/mopidy-musicbox-webclient { };
motif = callPackage ../development/libraries/motif { };
mozplugger = callPackage ../applications/networking/browsers/mozilla-plugins/mozplugger {};
mozjpeg = callPackage ../applications/graphics/mozjpeg { };
@ -14076,9 +14078,7 @@ in
ne = callPackage ../applications/editors/ne { };
nedit = callPackage ../applications/editors/nedit {
motif = lesstif;
};
nedit = callPackage ../applications/editors/nedit { };
notmuch = callPackage ../applications/networking/mailreaders/notmuch {
# No need to build Emacs - notmuch.el works just fine without