3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #119055 from eduardosm/kicad

This commit is contained in:
Sandro 2021-04-21 06:28:21 +02:00 committed by GitHub
commit 59f840f3d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,8 @@ stdenv.mkDerivation rec {
in
(concatStringsSep "\n"
(flatten [
"runHook preInstall"
(optionalString (withScripting) "buildPythonPath \"${base} $pythonPath\" \n")
# wrap each of the directly usable tools
@ -227,10 +229,19 @@ stdenv.mkDerivation rec {
# link in the CLI utils
(map (util: "ln -s ${base}/bin/${util} $out/bin/${util}") utils)
"runHook postInstall"
])
)
;
postInstall = ''
mkdir -p $out/share
ln -s ${base}/share/applications $out/share/applications
ln -s ${base}/share/icons $out/share/icons
ln -s ${base}/share/mime $out/share/mime
'';
# can't run this for each pname
# stable and unstable are in the same versions.nix
# and kicad-small reuses stable
@ -248,7 +259,7 @@ stdenv.mkDerivation rec {
KiCad is an open source software suite for Electronic Design Automation.
The Programs handle Schematic Capture, and PCB Layout with Gerber output.
'';
license = lib.licenses.agpl3;
license = lib.licenses.gpl3Plus;
# berce seems inactive...
maintainers = with lib.maintainers; [ evils kiwi berce ];
# kicad is cross platform