Skip to content

Instantly share code, notes, and snippets.

@ndowens
Created February 21, 2017 23:46
Show Gist options
  • Save ndowens/f9d43ff4399811a358e44529dda2bae3 to your computer and use it in GitHub Desktop.
Save ndowens/f9d43ff4399811a358e44529dda2bae3 to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
name = "icq-${version}";
version = "10.0.12153";
src = fetchFromGitHub {
owner = "mailru";
repo = "icqdesktop";
rev = "704829e8b7c9691e0195b827b7aa1710cac0c8";
sha256 = "0zrwpirrc6rcxm3bc4gp669a48670avnxgan19k89xg5lv43l4dr";
fetchSubmodules = true;
};
buildInputs = [ cmake ];
preBuild =
''
if system == x86_64-linux
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINUX_ARCH=64 make
if system == i686-linux
cmake .. -DCMAKE_BUILD_TYPE=Release -DLINUX_ARCH=32 make
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment