2022-10-30 15:09:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }:
|
2022-10-06 18:32:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "readstat";
|
|
|
|
version = "1.1.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WizardMac";
|
|
|
|
repo = "ReadStat";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1r04lq45h1yn34v1mgfiqjfzyaqv4axqlby0nkandamcsqyhc7y4";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ libiconv ];
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/WizardMac/ReadStat";
|
|
|
|
description = "Command-line tool (+ C library) for converting SAS, Stata, and SPSS files";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ swflint ];
|
|
|
|
};
|
|
|
|
}
|