diff --git a/pkgs/tools/archivers/unrar/default.nix b/pkgs/tools/archivers/unrar/default.nix index 6e545726b14a..6ed741512974 100644 --- a/pkgs/tools/archivers/unrar/default.nix +++ b/pkgs/tools/archivers/unrar/default.nix @@ -7,9 +7,13 @@ stdenv.mkDerivation { sha256 = "0inzy0jlwqm18i6lq17aq4n2baqqlbjyr6incw4s9cxrvmjq51ls"; }; - makeFlags = "-f makefile.unix"; + buildPhase = "make -f makefile.unix unrar lib CXXFLAGS=\"-fPIC -O2\""; - installPhase = "mkdir -p \${out}/bin/ ; cp unrar \${out}/bin/;"; + installPhase = '' + mkdir -p $out/bin $out/lib + cp unrar $out/bin + cp libunrar.so $out/lib + ''; buildInputs = []; }