Merge pull request #265975 from wegank/readstat-clang-16

readstat: fix build with clang 16

authored by Weijia Wang and committed by GitHub 11361133 62b155b8

+9 -1
+9 -1
pkgs/applications/science/math/readstat/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libiconv }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "readstat"; ··· 11 11 sha256 = "sha256-4lRJgZPB2gfaQ9fQKvDDpGhy1eDNT/nT1QmeZlCmCis="; 12 12 }; 13 13 14 + patches = [ 15 + (fetchpatch { 16 + url = "https://github.com/WizardMac/ReadStat/commit/211c342a1cfe46fb7fb984730dd7a29ff4752f35.patch"; 17 + hash = "sha256-nkaEgusylVu7NtzSzBklBuOnqO9qJPovf0qn9tTE6ls="; 18 + }) 19 + ]; 20 + 14 21 nativeBuildInputs = [ pkg-config autoreconfHook ]; 15 22 16 23 buildInputs = [ libiconv ]; ··· 22 29 description = "Command-line tool (+ C library) for converting SAS, Stata, and SPSS files"; 23 30 license = lib.licenses.mit; 24 31 maintainers = with lib.maintainers; [ swflint ]; 32 + platforms = lib.platforms.all; 25 33 }; 26 34 }