Merge remote-tracking branch 'upstream/master' into hardened-stdenv

This commit is contained in:
Robin Gloster
2016-03-15 01:44:24 +00:00
550 changed files with 9204 additions and 3225 deletions
+2 -2
View File
@@ -2,14 +2,14 @@
stdenv.mkDerivation rec {
name = "mksh-${version}";
version = "52";
version = "52c";
src = fetchurl {
urls = [
"http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
"http://pub.allbsd.org/MirOS/dist/mir/mksh/mksh-R${version}.tgz"
];
sha256 = "13vnncwfx4zq3yi7llw3p6miw0px1bm5rrps3y1nlfn6sb6zbhj5";
sha256 = "19ivsic15903hv3ipzk0kvkaxardw7b99s8l5iw3y415lz71ld66";
};
buildInputs = [ groff ];
+74
View File
@@ -0,0 +1,74 @@
# This script was inspired by the ArchLinux User Repository package:
#
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=oh-my-zsh-git
{ stdenv, fetchgit }:
stdenv.mkDerivation rec {
name = "oh-my-zsh-git-${version}";
version = "2016-02-27";
src = fetchgit {
url = "https://github.com/robbyrussell/oh-my-zsh";
rev = "bd6dbd1d9b1fc8a523aaf588492eb3ed4113b49d";
sha256 = "0bn3jijxjhrd00mc3biqs7jj6in3ivhr6d02mp4566i2rdp9x2d5";
};
phases = "installPhase";
installPhase = ''
outdir=$out/share/oh-my-zsh
template=templates/zshrc.zsh-template
mkdir -p $outdir
cp -r $src/* $outdir
cd $outdir
rm MIT-LICENSE.txt
rm -rf .git*
chmod -R +w templates
# Change the path to oh-my-zsh dir and disable auto-updating.
sed -i -e "2c\\ZSH=$outdir/" \
-e 's/\# \(DISABLE_AUTO_UPDATE="true"\)/\1/' \
$template
# Look for .zsh_variables, .zsh_aliases, and .zsh_funcs, and source
# them, if found.
cat >> $template <<- EOF
# Load the variables.
if [ -f ~/.zsh_variables ]; then
. ~/.zsh_variables
fi
# Load the functions.
if [ -f ~/.zsh_funcs ]; then
. ~/.zsh_funcs
fi
# Load the aliases.
if [ -f ~/.zsh_aliases ]; then
. ~/.zsh_aliases
fi
EOF
'';
meta = with stdenv.lib; {
description = "A framework for managing your zsh configuration";
longDescription = ''
Oh My Zsh is a framework for managing your zsh configuration.
To copy the Oh My Zsh configuration file to your home directory, run
the following command:
$ cp -v $(nix-env -q --out-path oh-my-zsh-git | cut -d' ' -f3)/share/oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
'';
homepage = "http://ohmyz.sh/";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ scolobb nequissimus ];
};
}
+5 -3
View File
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, coreutils, pcre }:
{ stdenv, fetchurl, ncurses, pcre }:
let
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
sha256 = "0dsr450v8nydvpk8ry276fvbznlrjgddgp7zvhcw4cv69i9lr4ps";
};
buildInputs = [ ncurses coreutils pcre ];
buildInputs = [ ncurses pcre ];
configureFlags = [
"--enable-maildir-support"
@@ -37,8 +37,10 @@ stdenv.mkDerivation {
# XXX: think/discuss about this, also with respect to nixos vs nix-on-X
postInstall = ''
mkdir -p $out/share/
mkdir -p $out/share/info
tar xf ${documentation} -C $out/share
ln -s $out/share/zsh-*/Doc/zsh.info* $out/share/info/
mkdir -p $out/etc/
cat > $out/etc/zprofile <<EOF
if test -e /etc/NIXOS; then