New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kicad: include desktop, icon and mime files #119055
Conversation
]) | ||
) | ||
; | ||
|
||
postInstall = '' | ||
install -d $out/share |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install -d $out/share | |
mkdir -p $out/share |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
Result of 2 packages built successfully:
1 suggestion:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i didn't get around to addressing your issue
@@ -216,6 +216,8 @@ stdenv.mkDerivation rec { | |||
in | |||
(concatStringsSep "\n" | |||
(flatten [ | |||
"runHook preInstall" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's up with this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hooks need to be explicitly called by the installPhase
script. Even if there isn't a preInstall
hook, users may define their own using overrideAttrs
.
https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/missing-phase-hooks.md
@@ -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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any idea why this has to be added explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because you are overwriting the phase that normally runs those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@evils LGTY? nvm, should have read the above more closely.
@ofborg eval |
Motivation for this change
Fixes #106295.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)