diff options
author | Jakob Gillich <jakob@gillich.me> | 2015-12-08 10:59:48 +0100 |
---|---|---|
committer | Jakob Gillich <jakob@gillich.me> | 2015-12-09 03:17:08 +0100 |
commit | 985bd0808e5f0c43cd378ac4ba1fe51575a3bbd3 (patch) | |
tree | 2ef95b2e24a73f677cb1b17d5df85a20072c6f52 /pkgs/os-specific/linux/syslinux/default.nix | |
parent | 2838161c2107f350f75120cc0c61c4ebb8901052 (diff) |
syslinux: fix missing mtools dependency
closes #11472
Diffstat (limited to 'pkgs/os-specific/linux/syslinux/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/syslinux/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/syslinux/default.nix b/pkgs/os-specific/linux/syslinux/default.nix index 5ebcef39e4735..c051aac431265 100644 --- a/pkgs/os-specific/linux/syslinux/default.nix +++ b/pkgs/os-specific/linux/syslinux/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, nasm, perl, python, libuuid }: +{ stdenv, fetchFromGitHub, nasm, perl, python, libuuid, mtools, makeWrapper }: stdenv.mkDerivation rec { name = "syslinux-2015-11-09"; @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { patches = [ ./perl-deps.patch ]; nativeBuildInputs = [ nasm perl python ]; - buildInputs = [ libuuid ]; + buildInputs = [ libuuid makeWrapper ]; enableParallelBuilding = false; # Fails very rarely with 'No rule to make target: ...' @@ -36,6 +36,11 @@ stdenv.mkDerivation rec { "bios" ]; + postInstall = '' + wrapProgram $out/bin/syslinux \ + --prefix PATH : "${mtools}/bin" + ''; + meta = with stdenv.lib; { homepage = http://www.syslinux.org/; description = "A lightweight bootloader"; |