mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
numen: 0.4.1 -> 0.5.1
0.5.1 adds locale-aware parsing and rendering, whose tests need locale data that the build sandbox does not provide. Diff: https://github.com/vicinaehq/numen/compare/v0.4.1...v0.5.1
This commit is contained in:
@@ -4,18 +4,19 @@
|
||||
fetchFromGitHub,
|
||||
catch2_3,
|
||||
cmake,
|
||||
glibcLocales,
|
||||
ninja,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "numen";
|
||||
version = "0.4.1";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vicinaehq";
|
||||
repo = "numen";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-j+Y331tYcnCTnQ9NdqqwDME6PLQU/1Xtid/8CKfdSC4=";
|
||||
hash = "sha256-cUly+bzaPwj9fiUmC+Gh7gwKAZjINCKZKGf/gPMhJJg=";
|
||||
};
|
||||
|
||||
__structuredAttrs = true;
|
||||
@@ -37,6 +38,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# needs /etc/localtime
|
||||
doCheck = !stdenv.hostPlatform.isDarwin;
|
||||
checkInputs = [ catch2_3 ];
|
||||
nativeCheckInputs = lib.optionals stdenv.hostPlatform.isLinux [ glibcLocales ];
|
||||
|
||||
# sandbox has no locale data
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
|
||||
LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Natural language calculator library";
|
||||
|
||||
Reference in New Issue
Block a user