Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c00a043ce2f7
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 650a295621b2
Choose a head ref
  • 11 commits
  • 12 files changed
  • 6 contributors

Commits on May 20, 2019

  1. xmind: 7.5-update1 -> 8-update8

    The latest version of XMind doesn't support a prebuilt debian package
    anymore, hence a manual installation of the ZIP is needed. The new
    configuration for the Java GUI had to be patched as it relied on several
    paths in the ZIP that won't work anymore in a Nix-based environment.
    
    Additionally the following changes were made:
    
    * Manual creation of a desktop item and an icon (we're using the one
      from AUR for now). Those files were available in the old `.deb`, but
      that isn't supported for the latest XMind version.
    
    * Created a patch fro `XMind.ini` to use writable paths in $HOME and fix
      the path to the plugins in the store path.
    
    * Created a custom startup script which ensures the creation of
      `$HOME/.xmind` and copies the relevant files from the store path into
      it. Such a behavior was available in the old `.deb` as well, but not
      anymore with the new ZIP.
    Ma27 committed May 20, 2019

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    Ma27 Maximilian Bosch
    Copy the full SHA
    42c8cb6 View commit details
  2. libfprint: added option to use fork for Lenovo ThinkPad

    Elmo Todurov committed May 20, 2019
    Copy the full SHA
    394b43f View commit details
  3. fprintd: added option to use fork for Lenovo ThinkPad

    Elmo Todurov committed May 20, 2019
    Copy the full SHA
    432944c View commit details
  4. xmind: 7.5-update1 -> 8-update8 (#61224)

    xmind: 7.5-update1 -> 8-update8
    infinisil authored May 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3153c2a View commit details
  5. Merge pull request #61546 from cizra/libfprint-vfs0090

    libfprint: added a fork for Lenovo ThinkPad
    worldofpeace authored May 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6543e79 View commit details
  6. ubridge: 0.9.15 -> 0.9.16

    primeos committed May 20, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    73b959d View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    a43fb1d View commit details
  8. Revert "pstree: remove and alias to psmisc"

    This reverts commit 4f8bf68.
    
    Reason: psmisc is Linux-platforms only
    c0bw3b committed May 20, 2019
    Copy the full SHA
    3a2ccb5 View commit details
  9. monkeysphere: 0.43 -> 0.44

    primeos committed May 20, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    ea7052b View commit details
  10. pstree: refresh sources

    Previous first URL was gone ;
    + refactor
    + enhance meta (homepage, license, maintainer)
    + define priority wrt psmisc
    c0bw3b committed May 20, 2019
    Copy the full SHA
    6c82bfb View commit details
  11. Merge pull request #61763 from c0bw3b/pkg/pstree-classic

    pstree: re-init at 2.39 (reverts #60994)
    c0bw3b authored May 20, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    650a295 View commit details
12 changes: 11 additions & 1 deletion nixos/modules/services/security/fprintd.nix
Original file line number Diff line number Diff line change
@@ -25,6 +25,16 @@ in
'';
};

package = mkOption {
type = types.package;
default = pkgs.fprintd;
defaultText = "pkgs.fprintd";
example = "pkgs.fprintd-thinkpad";
description = ''
fprintd package to use.
'';
};

};

};
@@ -38,7 +48,7 @@ in

environment.systemPackages = [ pkgs.fprintd ];

systemd.packages = [ pkgs.fprintd ];
systemd.packages = [ cfg.package ];

};

6 changes: 3 additions & 3 deletions pkgs/applications/editors/android-studio/default.nix
Original file line number Diff line number Diff line change
@@ -14,9 +14,9 @@ let
};
betaVersion = latestVersion;
latestVersion = { # canary & dev
version = "3.5.0.13"; # "Android Studio 3.5 Beta 1"
build = "191.5529924";
sha256Hash = "0i710n2wr0a8lvxf1mg6a5pmdh1l72wa0hwyricyixi0mylwwc6l";
version = "3.5.0.14"; # "Android Studio 3.5 Beta 2"
build = "191.5549111";
sha256Hash = "1zy2x0m1nsx3yy64cp1jvgb9aqkribwm64mv50g9355sdz7qjhcf";
};
in rec {
# Attributes are named by their corresponding release channels
38 changes: 38 additions & 0 deletions pkgs/applications/misc/pstree/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
pname = "pstree";
version = "2.39";

src = fetchurl {
urls = [
"https://distfiles.macports.org/${pname}/${pname}-${version}.tar.gz"
"https://fossies.org/linux/misc/${pname}-${version}.tar.gz"
"ftp://ftp.thp.uni-duisburg.de/pub/source/${pname}-${version}.tar.gz"
];
sha256 = "17s7v15c4gryjpi11y1xq75022nkg4ggzvjlq2dkmyg67ssc76vw";
};

sourceRoot = ".";
buildPhase = ''
runHook preBuild
$CC $NIX_CFLAGS -o pstree pstree.c
runHook postBuild
'';

installPhase = ''
runHook preInstall
install -Dm0555 ${pname} -t $out/bin
install -Dm0444 ${pname}.1 -t $out/share/man/man1
runHook postInstall
'';

meta = with stdenv.lib; {
description = "Show the set of running processes as a tree";
homepage = "http://www.thp.uni-duisburg.de/pstree/";
license = licenses.gpl2;
maintainers = [ maintainers.c0bw3b ];
platforms = platforms.unix;
priority = 5; # Lower than psmisc also providing pstree on Linux platforms
};
}
69 changes: 48 additions & 21 deletions pkgs/applications/misc/xmind/default.nix
Original file line number Diff line number Diff line change
@@ -1,42 +1,69 @@
{ stdenv, lib, dpkg, fetchurl, gtk2, jre, libXtst, makeWrapper }:
{ stdenv, lib, fetchzip, fetchurl, gtk2, jre, libXtst, makeWrapper, makeDesktopItem, runtimeShell }:

stdenv.mkDerivation rec {
name = "xmind-${version}";
version = "7.5-update1";
version = "8-update8";

src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_i386.deb";
sha256 = "04kr6pw0kwy715bp9wcnqnw1k5wl65xa87lhljrskm291p402jy1";
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
url = "http://dl2.xmind.net/xmind-downloads/${name}-linux_amd64.deb";
sha256 = "1j2ynhk7p3m3vd6c4mjwpnlzqgfj5c4q3zydab3nfwncwx6gaqj9";
} else throw "platform ${stdenv.hostPlatform.system} not supported!";
src = fetchzip {
url = "https://xmind.net/xmind/downloads/${name}-linux.zip";
stripRoot = false;
sha256 = "1p68z0b4brgiyybz190alqv716ncql49vsksm41y90mcjd8s4jhn";
};

srcIcon = fetchurl {
url = "https://aur.archlinux.org/cgit/aur.git/plain/xmind.png?h=xmind";
sha256 = "0jxq2fiq69q9ly0m6hx2qfybqad22sl42ciw636071khpqgc885f";
};

nativeBuildInputs = [ dpkg makeWrapper ];
patches = [ ./java-env-config-fixes.patch ];

unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
nativeBuildInputs = [ makeWrapper ];

dontBuild = true;
dontPatchELF = true;
dontStrip = true;

libPath = lib.makeLibraryPath [ gtk2 libXtst ];

installPhase = ''
mkdir -p $out
cp -r usr/lib/xmind $out/libexec
cp -r usr/bin usr/share $out
rm $out/libexec/XMind.ini
mv etc/XMind.ini $out/libexec
desktopItem = makeDesktopItem {
name = "XMind";
exec = "XMind";
icon = "xmind";
desktopName = "XMind";
comment = meta.description;
categories = "Office;";
mimeType = "application/xmind;xscheme-handler/xmind";
};

installPhase = let
targetDir = if stdenv.hostPlatform.system == "i686-linux"
then "XMind_i386"
else "XMind_amd64";
in ''
mkdir -p $out/{bin,libexec/configuration/,share/{applications/,fonts/,icons/hicolor/scalable/apps/}}
cp -r ${targetDir}/{configuration,p2,XMind{,.ini}} $out/libexec
cp -r {plugins,features} $out/libexec/
cp -r fonts $out/share/fonts/
cp "${desktopItem}/share/applications/XMind.desktop" $out/share/applications/XMind.desktop
cp ${srcIcon} $out/share/icons/hicolor/scalable/apps/xmind.png
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
$out/libexec/XMind
wrapProgram $out/libexec/XMind \
--prefix LD_LIBRARY_PATH : "${libPath}"
substituteInPlace "$out/bin/XMind" \
--replace '/usr/lib/xmind' "$out/libexec"
# Inspired by https://aur.archlinux.org/cgit/aur.git/tree/?h=xmind
cat >$out/bin/XMind <<EOF
#! ${runtimeShell}
if [ ! -d "\$HOME/.xmind" ]; then
mkdir -p "\$HOME/.xmind/configuration-cathy/"
cp -r $out/libexec/configuration/ \$HOME/.xmind/configuration-cathy/
fi
exec "$out/libexec/XMind" "$@"
EOF
chmod +x $out/bin/XMind
ln -s ${jre} $out/libexec/jre
'';
@@ -55,9 +82,9 @@ stdenv.mkDerivation rec {
GTD. Meanwhile, XMind can read FreeMind and MindManager files,
and save to Evernote.
'';
homepage = http://www.xmind.net/;
homepage = https://www.xmind.net/;
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with maintainers; [ michalrus ];
maintainers = with maintainers; [ michalrus ma27 ];
};
}
40 changes: 40 additions & 0 deletions pkgs/applications/misc/xmind/java-env-config-fixes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
diff --git a/XMind_amd64/XMind.ini b/XMind_amd64/XMind.ini
index bdd8a37..5f35daf 100644
--- a/XMind_amd64/XMind.ini
+++ b/XMind_amd64/XMind.ini
@@ -1,11 +1,11 @@
-configuration
-./configuration
+@user.home/.xmind/configuration-cathy_linux_64
-data
-../workspace
+@user.home/.xmind/workspace-cathy
-startup
-../plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
+plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
-../plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
+plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
--launcher.defaultAction
openFile
--launcher.GTK_version
diff --git a/XMind_i386/XMind.ini b/XMind_i386/XMind.ini
index 4ed3225..1d74258 100644
--- a/XMind_i386/XMind.ini
+++ b/XMind_i386/XMind.ini
@@ -1,11 +1,11 @@
-configuration
-./configuration
+@user.home/.xmind/configuration-cathy_linux_64
-data
-../workspace
+@user.home/.xmind/workspace-cathy
-startup
-../plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
+plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
-../plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444
+plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.400.v20160518-1444
--launcher.defaultAction
openFile
--launcher.GTK_version
29 changes: 21 additions & 8 deletions pkgs/development/libraries/libfprint/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
{ stdenv, fetchurl, pkgconfig, meson, ninja, libusb, pixman, glib, nss, gtk3
, coreutils, gtk-doc, docbook_xsl, docbook_xml_dtd_43 }:
{ thinkpad ? false, stdenv, fetchFromGitHub, fetchurl, pkgconfig, meson, ninja, libusb, pixman, glib, nss, gtk3
, coreutils, gtk-doc, docbook_xsl, docbook_xml_dtd_43, openssl ? null }:

assert thinkpad -> openssl != null;

stdenv.mkDerivation rec {
name = "libfprint-${version}";
pname = "libfprint" + stdenv.lib.optionalString thinkpad "-thinkpad";
version = "0.99.0";

src = fetchurl {
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/82ba3cef5bdf72997df711eacdb13c0f/libfprint-${version}.tar.xz";
sha256 = "16r4nl40y0jri57jiqmdz4s87byblx22lbhyvqpljd6mqm5rg187";
};
src = {
libfprint-thinkpad =
fetchFromGitHub {
owner = "3v1n0";
repo = "libfprint";
rev = "2e2e3821717e9042e93a995bdbd3d00f2df0be9c";
sha256 = "1vps1wrp7hskf13f7jrv0dwry2fcid76x2w463wplngp63cj7b3b";
};
libfprint = fetchurl {
url = "https://gitlab.freedesktop.org/libfprint/libfprint/uploads/82ba3cef5bdf72997df711eacdb13c0f/libfprint-${version}.tar.xz";
sha256 = "16r4nl40y0jri57jiqmdz4s87byblx22lbhyvqpljd6mqm5rg187";
};
}.${pname};

buildInputs = [ libusb pixman glib nss gtk3 ]
++ stdenv.lib.optional thinkpad openssl;

buildInputs = [ libusb pixman glib nss gtk3 ];
nativeBuildInputs = [ pkgconfig meson ninja gtk-doc docbook_xsl docbook_xml_dtd_43 ];

mesonFlags = [ "-Dudev_rules_dir=lib/udev/rules.d" "-Dx11-examples=false" ];
4 changes: 2 additions & 2 deletions pkgs/tools/networking/ubridge/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

stdenv.mkDerivation rec {
name = "ubridge-${version}";
version = "0.9.15";
version = "0.9.16";

src = fetchFromGitHub {
owner = "GNS3";
repo = "ubridge";
rev = "v${version}";
sha256 = "0fl07zyall04map6v2l1bclqh8y3rrhsx61s2v0sr8b00j201jg4";
sha256 = "1bind7ylgxs743vfdmpdrpp4iamy461bc3i7nxza91kj7hyyjz6h";
};

postPatch = ''
12 changes: 8 additions & 4 deletions pkgs/tools/security/fprintd/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{ stdenv, fetchurl, pkgconfig, intltool
, libfprint, glib, dbus-glib, polkit, nss, pam, systemd }:
{ thinkpad ? false
, stdenv, fetchurl, pkgconfig, intltool, libfprint-thinkpad ? null
, libfprint ? null, glib, dbus-glib, polkit, nss, pam, systemd }:

stdenv.mkDerivation rec {
name = "fprintd-${version}";
pname = "fprintd" + stdenv.lib.optionalString thinkpad "-thinkpad";
version = "0.8.1";

src = fetchurl {
url = "https://gitlab.freedesktop.org/libfprint/fprintd/uploads/bdd9f91909f535368b7c21f72311704a/fprintd-${version}.tar.xz";
sha256 = "124s0g9syvglgsmqnavp2a8c0zcq8cyaph8p8iyvbla11vfizs9l";
};

buildInputs = [ libfprint glib dbus-glib polkit nss pam systemd ];
buildInputs = [ glib dbus-glib polkit nss pam systemd ]
++ stdenv.lib.optional thinkpad libfprint-thinkpad
++ stdenv.lib.optional (!thinkpad) libfprint;

nativeBuildInputs = [ pkgconfig intltool ];

configureFlags = [ "--with-systemdsystemunitdir=$(out)/lib/systemd/system" "--localstatedir=/var" ];
12 changes: 6 additions & 6 deletions pkgs/tools/security/monkeysphere/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
, perl, libassuan, libgcrypt
, perlPackages, lockfileProgs, gnupg, coreutils
# For the tests:
, bash, openssh, which, socat, cpio, hexdump, openssl
, bash, openssh, which, socat, cpio, hexdump, procps, openssl
}:

let
@@ -14,14 +14,14 @@ let
});
in stdenv.mkDerivation rec {
name = "monkeysphere-${version}";
version = "0.43";
version = "0.44";

# The patched OpenSSH binary MUST NOT be used (except in the check phase):
disallowedRequisites = [ opensshUnsafe ];

src = fetchurl {
url = "http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${version}.orig.tar.gz";
sha256 = "18i7qpvp5qb7mmd0z5rqai550rya9l3nbsq2hamwkl3smqsjdqc0";
sha256 = "1ah7hy8r9gj96pni8azzjb85454qky5l17m3pqn37854l6grgika";
};

patches = [ ./monkeysphere.patch ];
@@ -33,7 +33,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl libassuan libgcrypt ]
++ stdenv.lib.optional doCheck
([ gnupg opensshUnsafe which socat cpio hexdump lockfileProgs ] ++
([ gnupg opensshUnsafe which socat cpio hexdump procps lockfileProgs ] ++
(with perlPackages; [ CryptOpenSSLRSA CryptOpenSSLBignum ]));

makeFlags = ''
@@ -60,7 +60,7 @@ in stdenv.mkDerivation rec {
postFixup =
let wrapperArgs = runtimeDeps:
"--prefix PERL5LIB : "
+ (with perlPackages; makePerlPath [
+ (with perlPackages; makePerlPath [ # Optional (only required for keytrans)
CryptOpenSSLRSA
CryptOpenSSLBignum
])
@@ -73,7 +73,7 @@ in stdenv.mkDerivation rec {
(wrapMonkeysphere runtimeDeps)
programs;
in wrapPrograms [ gnupg ] [ "monkeysphere-authentication" "monkeysphere-host" ]
+ wrapPrograms [ lockfileProgs ] [ "monkeysphere" ]
+ wrapPrograms [ gnupg lockfileProgs ] [ "monkeysphere" ]
+ ''
# These 4 programs depend on the program name ($0):
for program in openpgp2pem openpgp2spki openpgp2ssh pem2openpgp; do
21 changes: 0 additions & 21 deletions pkgs/tools/security/monkeysphere/monkeysphere.patch
Original file line number Diff line number Diff line change
@@ -10,15 +10,6 @@ diff --git a/Makefile b/Makefile
-e 's:__SYSCONFDIR_PREFIX__:$(ETCPREFIX):' \
-e 's:__SYSDATADIR_PREFIX__:$(LOCALSTATEDIR):'

diff --git a/src/share/checkperms b/src/share/checkperms
--- a/src/share/checkperms
+++ b/src/share/checkperms
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -T
+#!/usr/bin/perl

# checkperms: ensure as best we can that a given file can only be
# modified by the given user (or the superuser, naturally). This
diff --git a/src/share/keytrans b/src/share/keytrans
--- a/src/share/keytrans
+++ b/src/share/keytrans
@@ -28,17 +19,5 @@ diff --git a/src/share/keytrans b/src/share/keytrans

# keytrans: this is an RSA key translation utility; it is capable of
# transforming RSA keys (both public keys and secret keys) between
diff --git a/tests/basic b/tests/basic
--- a/tests/basic
+++ b/tests/basic
@@ -343,7 +340,7 @@ if [ "$MONKEYSPHERE_TEST_USE_ED25519" = true ]; then
echo "### generating ed25519 key for testuser..."
# from the imported secret key
USER_FPR=8A4B353B4CBA6F30625498BAE00B5EEEBA79B482
- gpg --quick-add-key "$USER_FPR" ed25519 auth 2d
+ gpg --no-tty --quick-add-key "$USER_FPR" ed25519 auth 2d
else
echo "### generating standard monkeysphere key for testuser..."
monkeysphere gen-subkey
--
2.16.3
1 change: 0 additions & 1 deletion pkgs/top-level/aliases.nix
Original file line number Diff line number Diff line change
@@ -256,7 +256,6 @@ mapAliases ({
# end
ppl-address-book = throw "deprecated in 2019-05-02: abandoned by upstream.";
procps-ng = procps; # added 2018-06-08
pstree = psmisc; # added 2019-05-05
pulseaudioLight = pulseaudio; # added 2018-04-25
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
qt_gstreamer = qt-gstreamer; # added 2017-02
Loading