tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nedit: 5.5 -> 5.6
William A. Kennington III
11 years ago
8a8097eb
78d8e552
+13
-46
3 changed files
expand all
collapse all
unified
split
pkgs
applications
editors
nedit
builder.sh
default.nix
dynamic.patch
-10
pkgs/applications/editors/nedit/builder.sh
···
1
-
source $stdenv/setup
2
-
3
-
export NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L$motif/lib $NIX_CFLAGS_COMPILE"
4
-
5
-
installPhase() {
6
-
mkdir -p $out/bin
7
-
cp -p source/nedit source/nc $out/bin
8
-
}
9
-
10
-
genericBuild
···
0
0
0
0
0
0
0
0
0
0
+13
-9
pkgs/applications/editors/nedit/default.nix
···
1
-
{stdenv, fetchurl, x11, motif, libXpm}:
2
3
assert stdenv.isLinux;
4
5
-
stdenv.mkDerivation {
6
-
name = "nedit-5.5";
7
-
builder = ./builder.sh;
8
9
src = fetchurl {
10
-
url = http://nl.nedit.org/ftp/v5_5/nedit-5.5-src.tar.bz2;
11
-
md5 = "48cb3dce52d44988f3a4d7c6f47b6bbe";
12
};
13
-
patches = [./dynamic.patch];
14
15
-
inherit motif;
16
-
buildInputs = [x11 motif libXpm];
17
18
buildFlags = if stdenv.isLinux then "linux" else "";
0
0
0
0
0
0
0
19
20
meta = {
21
homepage = http://www.nedit.org;
···
1
+
{ stdenv, fetchurl, x11, motif, libXpm }:
2
3
assert stdenv.isLinux;
4
5
+
stdenv.mkDerivation rec {
6
+
name = "nedit-5.6";
0
7
8
src = fetchurl {
9
+
url = "mirror://sourceforge/nedit/nedit-source/${name}-src.tar.gz";
10
+
sha256 = "023hwpqc57mnzvg6p7jda6193afgjzxzajlhwhqvk3jq2kdv6zna";
11
};
0
12
13
+
buildInputs = [ x11 motif libXpm ];
0
14
15
buildFlags = if stdenv.isLinux then "linux" else "";
16
+
17
+
NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L${motif}/lib";
18
+
19
+
installPhase = ''
20
+
mkdir -p $out/bin
21
+
cp -p source/nedit source/nc $out/bin
22
+
'';
23
24
meta = {
25
homepage = http://www.nedit.org;
-27
pkgs/applications/editors/nedit/dynamic.patch
···
1
-
diff -rc nedit-5.5-orig/makefiles/Makefile.linux nedit-5.5/makefiles/Makefile.linux
2
-
*** nedit-5.5-orig/makefiles/Makefile.linux 2003-05-20 02:27:56.000000000 +0200
3
-
--- nedit-5.5/makefiles/Makefile.linux 2005-12-03 00:42:23.000000000 +0100
4
-
***************
5
-
*** 17,27 ****
6
-
# To test if the Motif library exports the runtime version
7
-
# add -DHAVE__XMVERSIONSTRING to CFLAGS
8
-
#
9
-
! CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
10
-
11
-
ARFLAGS=-urs
12
-
13
-
! LIBS= -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
14
-
15
-
include Makefile.common
16
-
17
-
--- 17,27 ----
18
-
# To test if the Motif library exports the runtime version
19
-
# add -DHAVE__XMVERSIONSTRING to CFLAGS
20
-
#
21
-
! CFLAGS=-O -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
22
-
23
-
ARFLAGS=-urs
24
-
25
-
! LIBS= -lXm -lXp -lXpm -lXext -lXt -lSM -lICE -lX11 -lm
26
-
27
-
include Makefile.common
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0