diff options
author | Evils <evils.devils@protonmail.com> | 2019-12-15 12:26:23 +0100 |
---|---|---|
committer | Evils <evils.devils@protonmail.com> | 2020-01-02 03:45:34 +0100 |
commit | e4786f3a1c75b6e2cc9b77063d0937801ce43b11 (patch) | |
tree | b4c3596c4ec2becbe1bdabf672c0adca4e1ba30f /pkgs/applications/science/electronics/kicad/base.nix | |
parent | 6119ca27bb65d55cd4fb798b9f24e8df721e6747 (diff) |
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
Diffstat (limited to 'pkgs/applications/science/electronics/kicad/base.nix')
-rw-r--r-- | pkgs/applications/science/electronics/kicad/base.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkgs/applications/science/electronics/kicad/base.nix b/pkgs/applications/science/electronics/kicad/base.nix index 2d7cf9e1612e..6bc665962297 100644 --- a/pkgs/applications/science/electronics/kicad/base.nix +++ b/pkgs/applications/science/electronics/kicad/base.nix @@ -11,7 +11,6 @@ , ngspiceSupport ? true, libngspice , scriptingSupport ? true, swig, python, pythonPackages, wxPython , debug ? false, valgrind -, with3d ? true , withI18n ? true }: @@ -56,10 +55,11 @@ stdenv.mkDerivation rec { ]; # tagged releases don't have "unknown" - postPatch = optional (!stable) - '' + # kicad nightlies use git describe --dirty + # nix removes .git, so its approximated here + postPatch = '' substituteInPlace CMakeModules/KiCadVersion.cmake \ - --replace "unknown" ${baseVersion} + --replace "unknown" ${builtins.substring 0 10 src.rev} ''; makeFlags = optional (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ]; @@ -117,9 +117,9 @@ stdenv.mkDerivation rec { ''; meta = { - description = "just the built source without the libraries"; + description = "Just the built source without the libraries"; longDescription = '' - just the build products, optionally with the i18n linked in + Just the build products, optionally with the i18n linked in the libraries are passed via an env var in the wrapper, default.nix ''; homepage = "https://www.kicad-pcb.org/"; |