aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/zsh.nix25
1 files changed, 21 insertions, 4 deletions
diff --git a/nix/zsh.nix b/nix/zsh.nix
index a3feb2b..b9afca5 100644
--- a/nix/zsh.nix
+++ b/nix/zsh.nix
@@ -1,10 +1,27 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, ncurses }:
stdenv.mkDerivation {
name = "zsh-yerba";
src = fetchurl {
- url = "https://sourceforge.net/projects/zsh/files/zsh/5.9.1/zsh-5.9.1.tar.xz/download";
- hash = "";
+ url = "https://www.zsh.org/pub/zsh-5.9.1.tar.xz";
+ hash = "sha256-XSC+wD+YHcTpoJ7CRedBU4j/ZB95xcXEFrUELljYKA0=
+";
};
- # Do this later
+ CFLAGS = "-O0";
+ buildInputs = [ ncurses ];
+ nativeBuildInputs = [ ncurses ];
+ configureFlags = [
+ "--prefix=/usr"
+ "--disable-rpath"
+ ];
+ configurePhase = ''
+ ./configure --prefix=/usr --disable-rpath
+ '';
+ buildPhase = ''
+ make -j$NIX_BUILD_CORES
+ '';
+ installPhase = ''
+ mkdir -p $out
+ make install DESTDIR=$out/_install
+ '';
}