3
0
Fork 0
forked from mirrors/nixpkgs

pugixml: use fetchFromGitHub

This commit is contained in:
Ioannis Koutras 2019-03-02 13:07:52 +02:00
parent bf6537552e
commit 8571a669a7

View file

@ -1,12 +1,14 @@
{ stdenv, fetchurl, cmake, shared ? false }:
{ stdenv, fetchFromGitHub, cmake, shared ? false }:
stdenv.mkDerivation rec {
name = "pugixml-${version}";
version = "1.9";
src = fetchurl {
url = "https://github.com/zeux/pugixml/releases/download/v${version}/${name}.tar.gz";
sha256 = "19nv3zhik3djp4blc4vrjwrl8dfhzmal8b21sq7y907nhddx6mni";
src = fetchFromGitHub {
owner = "zeux";
repo = "pugixml";
rev = "v${version}";
sha256 = "0iraznwm78pyyzc9snvd3dyz8gddvmxsm1b3kpw7wixkvcawdviv";
};
nativeBuildInputs = [ cmake ];