Merge pull request #154129 from Enzime/fix/zsh-custom-src
zsh: Support building from Git checkouts
This commit is contained in:
commit
4a7b0213ef
1 changed files with 16 additions and 9 deletions
|
@ -1,12 +1,19 @@
|
||||||
{ lib, stdenv, fetchurl, fetchpatch, ncurses, pcre, buildPackages }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
|
, autoreconfHook
|
||||||
|
, yodl
|
||||||
|
, perl
|
||||||
|
, groff
|
||||||
|
, util-linux
|
||||||
|
, texinfo
|
||||||
|
, ncurses
|
||||||
|
, pcre
|
||||||
|
, buildPackages }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "5.8";
|
version = "5.8";
|
||||||
|
|
||||||
documentation = fetchurl {
|
|
||||||
url = "mirror://sourceforge/zsh/zsh-${version}-doc.tar.xz";
|
|
||||||
sha256 = "1i6wdzq6rfjx5yjrpzan1jf50hk2pfzy5qib9mb7cnnbjfar6klv";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
@ -30,6 +37,8 @@ stdenv.mkDerivation {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook yodl perl groff util-linux texinfo ];
|
||||||
|
|
||||||
buildInputs = [ ncurses pcre ];
|
buildInputs = [ ncurses pcre ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
@ -47,9 +56,7 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
# XXX: think/discuss about this, also with respect to nixos vs nix-on-X
|
# XXX: think/discuss about this, also with respect to nixos vs nix-on-X
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/info
|
make install.info install.html
|
||||||
tar xf ${documentation} -C $out/share
|
|
||||||
ln -s $out/share/zsh-*/Doc/zsh.info* $out/share/info/
|
|
||||||
|
|
||||||
mkdir -p $out/etc/
|
mkdir -p $out/etc/
|
||||||
cat > $out/etc/zprofile <<EOF
|
cat > $out/etc/zprofile <<EOF
|
||||||
|
|
Loading…
Reference in a new issue