Commit graph

97 commits

Author SHA1 Message Date
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Ben Siraphob badf51221d treewide: stdenv.lib -> lib 2021-01-16 17:58:11 +07:00
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00
Evils 0448f1c082 kicad-unstable: 2020-12-01 -> 2020-12-23 2021-01-07 16:17:41 -05:00
Evils 9be551c1d8 kicad: 5.1.8 -> 5.1.9 2021-01-07 16:17:41 -05:00
Evils 86e29a0b72 kicad: fix update.sh multiple tag reply handling
and fix tabs in update.sh
2021-01-07 16:17:41 -05:00
Ben Gamari c98ce627d4
kicad-unstable: 2020-11-07 -> 2020-12-01 (#105743) 2020-12-03 19:17:32 -05:00
Evils a52e974cff kicad-unstable: 2020-10-09 -> 2020-11-07
patch for issue 72248 no longer applies
  issue doesn't seem to occur without it anymore...
2020-11-07 16:29:52 +01:00
Evils 905134a79f kicad: 5.1.7 -> 5.1.8 2020-11-07 16:29:52 +01:00
Evils 50ec961174 kicad: fix update.sh bootstrapping
it will now correctly build a version.nix file from scratch
2020-11-07 16:29:52 +01:00
Evils 756f36b554 kicad: 5.1.6 -> 5.1.7 2020-11-07 16:29:52 +01:00
Matt Huszagh 9320c69ecb kicad: set default footprint, symbol library and package locations
Previously, these library locations were set absolutely. This
prevented overriding their locations with environment variables. Now,
setting the corresponding environment variable will override the
setting in the environment wrapper. For instance, I can set

KISYSMOD=/some/path/to/footprints

and this will be used as my footprint library instead of the default
footprint library in the nix store. This feature is particularly
useful for having kicad libraries which are writable.
2020-10-17 09:32:55 -07:00
Matt Huszagh f2cb2c447d kicad: add srcs parameter to allow configuring kicad versions
This also exposes the full src and version parameters for each
derivation, allowing them to overrideable by srcs.
2020-10-12 11:32:44 -07:00
Matt Huszagh 9d13164b27 kicad: Rename <feature>Support arguments to with<Feature>
Also: Use assertions instead of silently ignoring arguments that don't cooperate
(occ+oce) / won't compile (aarch64 + oce).

base.nix no longer provides default argument values since these are
provided by default.nix.
2020-10-12 11:32:04 -07:00
Matt Huszagh 85d5195f70 kicad: remove unnecessary with lib; statements 2020-10-10 16:22:04 -07:00
Matt Huszagh e2fea84597 kicad: clarify wrapGAppsHook comment 2020-10-10 15:15:43 -07:00
Matt Huszagh b3e2b523e5 kicad: reformat with nixpkgs-fmt 2020-10-10 12:53:09 -07:00
Matt Huszagh 104aca941a kicad-unstable: 2020-08-22 -> 2020-10-09
base.nix requires gtk3 to compile
2020-10-09 07:36:42 -07:00
Matt Huszagh b67afd8a44 kicad: modify update script to use gitlab for libraries
Kicad libraries are now hosted on gitlab instead of github.
2020-10-09 07:36:41 -07:00
Hannes Weisbach 9c73e34d18 kicad: remove gettext from buildInputs, add to nativeBuildInputs
The i18n "library" does not link against gettext. It only requires the
msgfmt utility from gettext, hence gettext should be a nativeBuildInput
2020-09-17 19:48:50 +02:00
Evils 3ebb12a695 kicad-unstable: 2020-07-21 -> 2020-08-22 2020-08-23 13:24:16 +02:00
Evils c761c60431 kicad: reenable scriptingSupport
94108 fixed the wxPython dependency
2020-08-23 13:24:16 +02:00
Evils 43a6b7b886 kicad: use hash rather than date for package names
to prevent duplication when just the date changes

kicad.libraries should be fixed output derivations?
2020-08-23 13:24:16 +02:00
Evils b6863cbfe7 kicad: fix build
disable scripting support as 92261 broke wxPython_4_0
  and i haven't managed to get wxPython 4.1 to work

something caused makeWrapper to have to be added on its own
  not sure where it came from before...

and some cleanup
2020-07-24 03:26:00 -04:00
Evils e842233678 kicad-unstable: 2020-05-14 -> 2020-07-21 2020-07-24 03:26:00 -04:00
Frederik Rietdijk bc3c3b4a59 pythonPackages.kicad: bindings to kicad
Add the Python bindings for kicad.

Following now functions

    $ nix run "(import ./. {}).python3.withPackages(ps: with ps; [ kicad  ])" -c python3 -c "import pcbnew"

Have not tested this any further.
2020-05-23 15:44:14 +02:00
Evils d798396684 kicad-unstable: 2020-05-06 -> 2020-05-14 2020-05-21 10:49:18 +02:00
Evils a791245d51 kicad: 5.1.5 -> 5.1.6 2020-05-21 10:49:18 +02:00
Evils 2d3d8c4d66 kicad-unstable: 2020-04-25 -> 2020-05-06 2020-05-07 02:15:57 +02:00
Evils 1059fdf143 kicad: link utils; clean up wrapper installPhase 2020-05-07 01:54:51 +02:00
Evils 95e4e33bdf kicad-unstable-small: init to make kicad-unstable
the -small packages depend on all hydra buildable dependencies
the non-small ones depend on packages3d which exceeds hydra's limit

set platforms to all (kicad is cross-platform)
clarify package differences in the description

set maintainers on just the top level derivation

switch -unstable to not save debug symbols

indicate patch in version string

note broken dependencies
2020-05-07 01:54:50 +02:00
Evils 18a1b153ac kicad: expose base and libraries attributes 2020-05-07 01:54:50 +02:00
Evils b80bd001e2
kicad-unstable: 2020-02-10 -> 2020-04-25
cc #82634
2020-04-26 13:38:37 -04:00
Evils 75963b9160
kicad: update.sh: set -e
and some more suggestions from veprbl

warn if an empty item gets through anyway

and use UTC time

cc #82634
2020-04-26 13:38:13 -04:00
Dmitry Kalinkin ebe5f10794
kicad: don't build versions with 3d on Hydra
The hydraPlatforms have to be set on the kicad package itself, that can be
checked using:

  echo ":p { inherit kicad kicad-small kicad-unstable; }" | nix repl ./pkgs/top-level/release.nix

This commit disables build of all kicad variants that require downloading
packages3d, which currently fail on hydra with the "Output limit exceeded"
status. This leaves Hydra with only building the kicad-small, which will allow
us to cache the build of kicad-base as well as all libraries except of
packages3d.
2020-03-16 19:45:04 -04:00
Evils d3a9e634bf kicad-unstable: update update.sh && update
use /tmp instead of XDG_RUNTIME_DIR
  which is /run/user/1000, which defaults to 10% of RAM
  and kicad-packages3d needs ~6gb
2020-02-10 19:54:38 +01:00
Evils a9942b0226 kicad: simplify component names 2020-02-10 19:54:38 +01:00
Evils 2607c4b9f9 kicad: split version.nix & add update.sh
update.sh generates version.nix
  by default only updates kicad-unstable
  several options (can be combined)
    all, update to latest tag and master
    clean, generate versions.sh from scratch
    commit, make a git commit
2020-01-08 23:04:54 +01:00
Evils e4786f3a1c kicad: update & cleanup
minor simplification, fix base version

split i18n and get from gitlab

correct wrapper pythonpath, cleanup build output

update & fake git describe

correct base.nix to fit contributing.md
2020-01-02 03:45:34 +01:00
Evils 6119ca27bb kicad: split wrapping and building 2020-01-02 03:45:34 +01:00
Evils d96992a21b kicad: unite unstable.nix with default.nix
use latest libraries for unstable
move all revs and hashes to default.nix

thanks TQ for getting me through this blockage
2020-01-02 03:45:34 +01:00
Evils 958d745fec kicad: use separated libraries
switch source to gitlab as that's the new upstream source

use wrapper variables for everything but i18n
  add sym and fp templates to template path

update meta to reflect kicad's own language
  set license to AGPLv3, according to the source's LICENSE.README

reduce diff between default and unstable in preparation of merging

on debian gets "no module named 'math'"
  pcbnew 3d viewer is unusable (at least on my T410)
2020-01-02 03:45:34 +01:00
Evils c61170168d kicad: switch to best try from unstable and 5.1.5
make unstable use kicad-libraries
  still using a link in $out..., not sure that's a bad thing
  this allows setting that path in makeWrapperArgs
    can't use $out there

kicad-with-packages3d -> kicad and kicad-small

default to OCCT, OCE is outdated
  enforce OCCT on aarch64, where OCE is broken
  withOCE flag allows using OCE on non-aarch64
2020-01-02 03:45:34 +01:00
Evils 6477f717e3 kicad-unstable: wrap
use wxGTK31
  brings hiDPI support
  no python shell...
2020-01-02 03:45:34 +01:00
Matt Huszagh d40747ed2c kicad: add python six package as dep
This is needed for python scripting support.
2020-01-02 03:45:34 +01:00
Matt Huszagh 1eb1b067dd kicad: python2 -> python3 2020-01-02 03:45:34 +01:00
adisbladis c9d8624ccd
treewide: Get rid of libGLU_combined 2019-11-18 20:10:43 +00:00
Daniel Frank b4136a8f5b kicad: 5.1.2 -> 5.1.4, fix ngspice, mark broken on aarch64 (#69584) 2019-10-16 02:02:49 -04:00
Linus Heckemann 5aa4b19946 treewide: mark some broken packages as broken
Refs:
e6754980264fe927320d5ff2dbd24ca4fac9a160
1e9cc5b9844ef603fe160e9f671178f96200774f
793a2fe1e8bb886ca2096c5904e1193dc3268b6d
c19cf65261639f749012454932a532aa7c681e4b
f6544d618f30fae0bc4798c4387a8c7c9c047a7c
2019-10-08 17:14:26 +02:00
Vladimír Čunát 22a216849b
Re-Revert "Merge branch 'staging-next'"
This reverts commit f8a8fc6c7c.
2019-09-22 09:38:09 +02:00