Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 846 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 flex, 6 bison, 7 pkg-config, 8 glib, 9 gettext, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "libIDL"; 14 version = "0.8.14"; 15 16 src = fetchurl { 17 url = "mirror://gnome/sources/libIDL/${lib.versions.majorMinor version}/libIDL-${version}.tar.bz2"; 18 sha256 = "08129my8s9fbrk0vqvnmx6ph4nid744g5vbwphzkaik51664vln5"; 19 }; 20 21 strictDeps = true; 22 23 buildInputs = [ 24 glib 25 gettext 26 ]; 27 28 nativeBuildInputs = [ 29 flex 30 bison 31 pkg-config 32 ]; 33 34 configureFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 35 # before openembedded removed libIDL 36 # the result was always ll https://lists.openembedded.org/g/openembedded-core/topic/85775262?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3A%2C%2C%2C0%2C0%2C0%2C85775262 37 "libIDL_cv_long_long_format=ll" 38 ]; 39 meta.mainProgram = "libIDL-config-2"; 40}