diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2017-07-26 23:24:49 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2017-07-26 23:24:49 +0200 |
commit | 7cd9779488cf1d374142cf030f742cae4e13ba18 (patch) | |
tree | f6cc2b07afc99501b8f14a1b67469e8b9fec9cd7 /pkgs/tools/compression/upx | |
parent | 02ceec53435090fef253f5ae1bf54eab0c2c07d7 (diff) |
upx: fix clang build
Diffstat (limited to 'pkgs/tools/compression/upx')
-rw-r--r-- | pkgs/tools/compression/upx/default.nix | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/tools/compression/upx/default.nix b/pkgs/tools/compression/upx/default.nix index 8c9f74330581..213d98a1ec12 100644 --- a/pkgs/tools/compression/upx/default.nix +++ b/pkgs/tools/compression/upx/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, fetchFromGitHub, ucl, zlib, perl}: +{ stdenv, fetchurl, fetchFromGitHub, ucl, zlib, perl }: stdenv.mkDerivation rec { name = "upx-${version}"; @@ -8,21 +8,25 @@ stdenv.mkDerivation rec { sha256 = "08anybdliqsbsl6x835iwzljahnm9i7v26icdjkcv33xmk6p5vw1"; }; + CXXFLAGS = "-Wno-unused-command-line-argument"; + buildInputs = [ ucl zlib perl ]; - preConfigure = " + preConfigure = '' export UPX_UCLDIR=${ucl} - cd src - "; + ''; - makeFlags = [ "CHECK_WHITESPACE=true" ]; + makeFlags = [ "-C" "src" "CHECK_WHITESPACE=true" ]; - installPhase = "mkdir -p $out/bin ; cp upx.out $out/bin/upx"; + installPhase = '' + mkdir -p $out/bin + cp src/upx.out $out/bin/upx + ''; - meta = { + meta = with stdenv.lib; { homepage = https://upx.github.io/; description = "The Ultimate Packer for eXecutables"; - license = stdenv.lib.licenses.gpl2Plus; - platforms = stdenv.lib.platforms.unix; + license = licenses.gpl2Plus; + platforms = platforms.unix; }; } |