nixpkgs/pkgs/applications/science/math/readstat/default.nix
Alyssa Ross 0c61668468 readstat: always depend on top-level libiconv
Top-level libiconv is defined per-platform.  The actual libiconv
library won't be built on platforms like Linux where it doesn't need
to be, so there's no need to maintain a separate platform list here.

Required to build for FreeBSD.
2023-01-21 12:54:25 +00:00

25 lines
655 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libiconv }:
stdenv.mkDerivation rec {
name = "readstat";
version = "1.1.8";
src = fetchFromGitHub {
owner = "WizardMac";
repo = "ReadStat";
rev = "v${version}";
sha256 = "1r04lq45h1yn34v1mgfiqjfzyaqv4axqlby0nkandamcsqyhc7y4";
};
nativeBuildInputs = [ pkg-config autoreconfHook ];
buildInputs = [ libiconv ];
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 ];
};
}