Merge pull request #119055 from eduardosm/kicad

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