aboutsummaryrefslogtreecommitdiff
path: root/nix/zsh.nix
blob: b9afca5a6c7d150c3c808ac8ca4dfe83d43f3c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ stdenv, fetchurl, ncurses }:

stdenv.mkDerivation {
	name = "zsh-yerba";
	src = fetchurl {
		url = "https://www.zsh.org/pub/zsh-5.9.1.tar.xz";
		hash = "sha256-XSC+wD+YHcTpoJ7CRedBU4j/ZB95xcXEFrUELljYKA0=
";
	};
	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
	'';
}