summary refs log tree commit diff
path: root/pkgs/development/libraries/gtest/source.nix
blob: d8787efdcf2b905317ccb287685cb5e067a77383 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ fetchurl, stdenv, unzip, ... }:

stdenv.mkDerivation rec {
  name = "gtest-src-${version}";
  version = "1.7.0";

  src = fetchurl {
    url = "https://googletest.googlecode.com/files/gtest-${version}.zip";
    sha256 = "03fnw3bizw9bcx7l5qy1vz7185g33d5pxqcb6aqxwlrzv26s2z14";
  };

  buildInputs = [ unzip ];

  buildCommand = ''
    unpackPhase
    cd gtest-${version}
    mkdir $out
    cp -r * $out
  '';

  passthru = { inherit version; };
}