mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
28 lines
721 B
Nix
28 lines
721 B
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "gsmlib";
|
|
version = "unstable-2017-10-06";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "x-logLT";
|
|
repo = "gsmlib";
|
|
rev = "4f794b14450132f81673f7d3570c5a859aecf7ae";
|
|
sha256 = "16v8aj914ac1ipf14a867ljib3gy7fhzd9ypxnsg9l0zi8mm3ml5";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
|
# Needed with GCC 12
|
|
"-std=c++14"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to access GSM mobile phones through GSM modems";
|
|
homepage = "https://github.com/x-logLT/gsmlib";
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.misuzu ];
|
|
};
|
|
}
|