nixpkgs/pkgs/applications/science/electronics/kicad/libraries.nix

31 lines
703 B
Nix
Raw Normal View History

2021-01-15 13:21:58 +00:00
{ lib, stdenv
2020-10-10 19:50:41 +00:00
, cmake
, gettext
, libSrc
}:
let
mkLib = name:
stdenv.mkDerivation {
pname = "kicad-${name}";
version = builtins.substring 0 10 (libSrc name).rev;
src = libSrc name;
nativeBuildInputs = [ cmake ];
meta = rec {
2021-01-15 13:21:58 +00:00
license = lib.licenses.cc-by-sa-40;
platforms = lib.platforms.all;
# the 3d models are a ~1 GiB download and occupy ~5 GiB in store.
# this would exceed the hydra output limit
2020-10-10 19:50:41 +00:00
hydraPlatforms = if (name == "packages3d") then [ ] else platforms;
};
};
in
{
symbols = mkLib "symbols";
templates = mkLib "templates";
footprints = mkLib "footprints";
packages3d = mkLib "packages3d";
}