mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #191887 from evils/kicad-unstable
kicad-unstable: 2022-06-21 -> 2022-09-18
This commit is contained in:
commit
82f2e31ac0
@ -20,6 +20,7 @@
|
||||
, libpthreadstubs
|
||||
, libXdmcp
|
||||
, lndir
|
||||
, unixODBC
|
||||
|
||||
, util-linux
|
||||
, libselinux
|
||||
@ -32,7 +33,7 @@
|
||||
, at-spi2-core
|
||||
, libXtst
|
||||
|
||||
, swig
|
||||
, swig4
|
||||
, python
|
||||
, wxPython
|
||||
, opencascade-occt
|
||||
@ -68,16 +69,18 @@ stdenv.mkDerivation rec {
|
||||
# tagged releases don't have "unknown"
|
||||
# kicad nightlies use git describe --dirty
|
||||
# nix removes .git, so its approximated here
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeModules/KiCadVersion.cmake \
|
||||
--replace "unknown" "${builtins.substring 0 10 src.rev}" \
|
||||
'';
|
||||
postPatch = if (!stable) then ''
|
||||
substituteInPlace cmake/KiCadVersion.cmake \
|
||||
--replace "unknown" "${builtins.substring 0 10 src.rev}"
|
||||
''
|
||||
else "";
|
||||
|
||||
makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ];
|
||||
|
||||
cmakeFlags = [
|
||||
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||||
"-DKICAD_USE_EGL=ON"
|
||||
]
|
||||
++ optionals (withScripting) [
|
||||
"-DKICAD_SCRIPTING_WXPYTHON=ON"
|
||||
@ -151,15 +154,19 @@ stdenv.mkDerivation rec {
|
||||
curl
|
||||
openssl
|
||||
boost
|
||||
swig
|
||||
swig4
|
||||
python
|
||||
]
|
||||
++ optional (!stable) unixODBC
|
||||
++ optional (withScripting) wxPython
|
||||
++ optional (withNgspice) libngspice
|
||||
++ optional (withOCC) opencascade-occt
|
||||
++ optional (debug) valgrind
|
||||
;
|
||||
|
||||
# started becoming necessary halfway into 2022, not sure what changed to break a test...
|
||||
preInstallCheck = optionals (withNgspice) [ "export LD_LIBRARY_PATH=${libngspice}/lib" ];
|
||||
|
||||
# debug builds fail all but the python test
|
||||
# stable release doesn't have the fix for upstream issue 9888 yet
|
||||
doInstallCheck = !debug && !stable;
|
||||
|
@ -65,7 +65,11 @@ tmp="${here}/,versions.nix.${RANDOM}"
|
||||
libs=( symbols templates footprints packages3d )
|
||||
|
||||
get_rev() {
|
||||
git ls-remote --tags "$@"
|
||||
if [[ ${version} == "master" ]]; then
|
||||
git ls-remote --heads "$@"
|
||||
else
|
||||
git ls-remote --tags "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
gitlab="https://gitlab.com/kicad"
|
||||
|
@ -25,23 +25,23 @@
|
||||
};
|
||||
"kicad-unstable" = {
|
||||
kicadVersion = {
|
||||
version = "2022-06-21";
|
||||
version = "2022-09-18";
|
||||
src = {
|
||||
rev = "b54bb909755d39dcce38ef277c715d7f31ab8e00";
|
||||
sha256 = "0nzgrkkvc66hgqdrwfmh5fjw4ffr8gc3bw3n44sa6zjkkz5s6p48";
|
||||
rev = "0efc1149afed2af5b81e4555de4623217ece650f";
|
||||
sha256 = "19fqy8yvvl45izg5ynhch9r4gl4ncx0bz9s6n1x98bgzxkdyc14q";
|
||||
};
|
||||
};
|
||||
libVersion = {
|
||||
version = "2022-06-21";
|
||||
version = "2022-09-18";
|
||||
libSources = {
|
||||
symbols.rev = "a003b00f6f1056d726e32e911cd65b32946f5503";
|
||||
symbols.sha256 = "02z3vqhz1rlf57zi8vyrlxvvdl1hpsh447p41qdgcpn5dyjycb9d";
|
||||
symbols.rev = "879023fba005d23f285b6d052d9e6bcba1d754aa";
|
||||
symbols.sha256 = "1nxz8r3h3j62fs3s77lj27333fsj5c4i01n05lv0gqx36h28hqxk";
|
||||
templates.rev = "ae2b46f8756d79379b90fec01d4fdde1ccfd73c1";
|
||||
templates.sha256 = "08zxh83fbygh1x2jhca8nrp3f9kihf7kmg65qmyp95wvps4p5h8v";
|
||||
footprints.rev = "5df530ec44892407d6382d933ff9ad42dd19df0e";
|
||||
footprints.sha256 = "1phynxisha2pq2knbx5l1hkdz1bmjm0qxl3lcb4ab82h8d35r37c";
|
||||
packages3d.rev = "6bfd8dfa3adc6ac316b9857977c87f22282c6e24";
|
||||
packages3d.sha256 = "0ci9gxbpfnfqwah95ki4qcwlca78s1z6s7hckisnp58a1cm9siya";
|
||||
footprints.rev = "b1dfe894de90b0063befc02b914dc9e2b47e3a62";
|
||||
footprints.sha256 = "06kn6c00wlnr33mks582xhadvkbbgmqhb4qc1wjfw264pavz7v7y";
|
||||
packages3d.rev = "45df600c5e3dd5113d62e6445115e7c37bdf362f";
|
||||
packages3d.sha256 = "0cnrg7mr3khpglviid1adk2ihs1qwj0r7l32z2vqsl8aidzbg9kr";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user