@@ -19,13 +19,15 @@ let
1919 isCross = stdenv.hostPlatform != stdenv.buildPlatform;
2020in stdenv.mkDerivation rec {
2121 pname = "poke";
22− version = "1.3";
22+ version = "1.4";
2323
2424 src = fetchurl {
2525 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz";
26− hash = "sha256-unhjA0obCABLDuj4i9qUFgcH6aeB1VVvVVtQdYPPDxs=";
26+ sha256 = "sha256-zgVN8pVgySEjATJwPuRJ/hMLbiWrA6psx5a7QBUGqiQ=";
2727 };
2828
29+ outputs = [ "out" "dev" "info" "lib" "man" ];
30+
2931 postPatch = ''
3032 patchShebangs .
3133 '';
@@ -46,7 +48,9 @@ in stdenv.mkDerivation rec {
4648 ++ lib.optional textStylingSupport gettext
4749 ++ lib.optional (!isCross) dejagnu;
4850
49− configureFlags = lib.optionals guiSupport [
51+ configureFlags = [
52+ "--datadir=${placeholder "lib"}/share"
53+ ] ++ lib.optionals guiSupport [
5054 "--with-tcl=${tcl}/lib"
5155 "--with-tk=${tk}/lib"
5256 "--with-tkinclude=${tk.dev}/include"
@@ -57,6 +61,10 @@ in stdenv.mkDerivation rec {
5761 doCheck = !isCross;
5862 checkInputs = lib.optionals (!isCross) [ dejagnu ];
5963
64+ postInstall = ''
65+ moveToOutput share/emacs "$out"
66+ '';
67+
6068 meta = with lib; {
6169 description = "Interactive, extensible editor for binary data";
6270 homepage = "http://www.jemarch.net/poke";