Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1e86c0a7df5c
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 96e305b96811
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Mar 17, 2019

  1. Copy the full SHA
    e71445c View commit details

Commits on Mar 23, 2019

  1. Merge pull request #57812 from AndersonTorres/update/plan9port

    plan9port: 2018-09-20 -> 2019-02-25
    joachifm authored Mar 23, 2019
    Copy the full SHA
    96e305b View commit details
Showing with 31 additions and 248 deletions.
  1. +31 −33 pkgs/tools/system/plan9port/default.nix
  2. +0 −215 pkgs/tools/system/plan9port/sam_chord_9front.patch
64 changes: 31 additions & 33 deletions pkgs/tools/system/plan9port/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{ stdenv, fetchgit, which, libX11, libXt, fontconfig, freetype
{ stdenv, fetchFromGitHub, which, libX11, libXt, fontconfig, freetype
, xorgproto ? null
, libXext ? null
, zlib ? null
# For building web manuals
, perl ? null
, samChordingSupport ? true #from 9front
, perl ? null # For building web manuals
}:

stdenv.mkDerivation rec {
name = "plan9port-2018-09-20";
pname = "plan9port";
version = "2019-02-25";
name = "${pname}-${version}";

src = fetchgit {
# Latest, same as on github, google code is old
url = "https://github.com/9fans/plan9port.git";
rev = "a82a8b6368274d77d42f526e379b74e79c137e26";
sha256 = "1icywcnqv0dz1mkm7giakii536nycp0ajxnmzkx4944dxsmhcwq1";
src = fetchFromGitHub {
owner = "9fans";
repo = "plan9port";
rev = "047fd921744f39a82a86d9370e03f7af511e6e84";
sha256 = "1lp17948q7vpl8rc2bf5a45bc8jqyj0s3zffmks9r25ai42vgb43";
};

patches = stdenv.lib.optionals samChordingSupport [ ./sam_chord_9front.patch ];

postPatch = ''
#hardcoded path
substituteInPlace src/cmd/acme/acme.c \
@@ -36,37 +34,20 @@ stdenv.mkDerivation rec {
--replace "case Kcmd+'v':" "case 0x16: case Kcmd+'v':"
'';

builder = ./builder.sh;

NIX_LDFLAGS="-lgcc_s";
buildInputs = stdenv.lib.optionals (!stdenv.isDarwin) [
which
perl
libX11
fontconfig
xorgproto
libXt
libXext
freetype #fontsrv wants ft2build.h. provides system fonts for acme and sam.
which perl libX11 fontconfig xorgproto libXt libXext
freetype # fontsrv wants ft2build.h provides system fonts for acme and sam.
];

enableParallelBuilding = true;
builder = ./builder.sh;

meta = with stdenv.lib; {
homepage = http://swtch.com/plan9port/;
description = "Plan 9 from User Space";
license = licenses.lpl-102;
maintainers = with maintainers; [ bbarker ftrvxmtrx kovirobi ];
platforms = platforms.unix;
};

libX11_dev = libX11.dev;
libXt_dev = libXt.dev;
libXext_dev = libXext.dev;
fontconfig_dev = fontconfig.dev;
freetype_dev = freetype.dev;
zlib_dev = zlib.dev;

xorgproto_exp = xorgproto;
libX11_exp = libX11;
libXt_exp = libXt;
@@ -75,4 +56,21 @@ stdenv.mkDerivation rec {
zlib_exp = zlib;

fontconfig_lib = fontconfig.lib;

NIX_LDFLAGS="-lgcc_s";
enableParallelBuilding = true;

meta = with stdenv.lib; {
homepage = https://9fans.github.io/plan9port/;
description = "Plan 9 from User Space";
longDescription = ''
Plan 9 from User Space (aka plan9port) is a port of many Plan 9 programs
from their native Plan 9 environment to Unix-like operating systems.
'';
license = licenses.lpl-102;
maintainers = with maintainers; [ AndersonTorres bbarker
ftrvxmtrx kovirobi ];
platforms = platforms.unix;
};
}
# TODO: investigate the mouse chording support patch
215 changes: 0 additions & 215 deletions pkgs/tools/system/plan9port/sam_chord_9front.patch

This file was deleted.