kicad: include desktop, icon and mime files
Fixes https://github.com/NixOS/nixpkgs/issues/106295.
This commit is contained in:
parent
7ed23e37bd
commit
427edc8b5a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user