Merge pull request #136904 from sikmir/uthash

uthash: 2.1.0 → 2.3.0

authored by Guillaume Girol and committed by GitHub d8a0a2e0 8aab9796

+10 -10
+10 -10
pkgs/development/libraries/uthash/default.nix
··· 1 - { lib, stdenv, fetchurl, perl }: 1 + { lib, stdenv, fetchFromGitHub, perl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "uthash"; 5 - version = "2.1.0"; 5 + version = "2.3.0"; 6 6 7 - src = fetchurl { 8 - url = "https://github.com/troydhanson/uthash/archive/v${version}.tar.gz"; 9 - sha256 = "17k6k97n20jpi9zj3lzvqfw8pv670r6rdqrjf8vrbx6hcj7csb0m"; 7 + src = fetchFromGitHub { 8 + owner = "troydhanson"; 9 + repo = pname; 10 + rev = "v${version}"; 11 + sha256 = "sha256-F0M5ENT3bMn3dD16Oaq9mBFYOWzVliVWupAIrLc2nkQ="; 10 12 }; 11 13 12 - dontBuild = false; 13 - 14 14 doCheck = true; 15 15 checkInputs = [ perl ]; 16 - checkTarget = "-C tests/"; 16 + checkTarget = "all"; 17 + preCheck = "cd tests"; 17 18 18 19 installPhase = '' 19 - mkdir -p "$out/include" 20 - cp ./src/* "$out/include/" 20 + install -Dm644 $src/include/*.h -t $out/include 21 21 ''; 22 22 23 23 meta = with lib; {