Repository navigation
unclutter: unbreak on gcc 14, modernize - #396975
Closed
haylinmoore wants to merge 1 commit into
Closed
haylinmoore wants to merge 1 commit into
haylinmoore wants to merge 1 commit into
Conversation
Member
|
Could modernize some more while we are here. diff --git a/pkgs/by-name/un/unclutter/package.nix b/pkgs/by-name/un/unclutter/package.nix
index 6d2193e42d7e..a69a1bff8c4e 100644
--- a/pkgs/by-name/un/unclutter/package.nix
+++ b/pkgs/by-name/un/unclutter/package.nix
@@ -17,11 +17,17 @@ stdenv.mkDerivation rec {
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
- installPhase = ''
+ installFlags = [
+ "DESTDIR=${placeholder "out"}"
+ "BINDIR=${placeholder "out"}/bin"
+ "MANPATH=${placeholder "out"}/share/man"
+ "PREFIX="
+ ];
+ installTargets = [ "install" "install.man" ];
+
+ preInstall = ''
mkdir -pv "$out/bin"
mkdir -pv "$out/share/man/man1"
- make DESTDIR="$out" BINDIR="$out/bin" PREFIX="" install
- make DESTDIR="$out" MANPATH="$out/share/man" PREFIX="" install.man
'';
meta = with lib; {
|
27 of 28 tasks
Merged
3 of 13 tasks
Contributor
|
I'd rather avoid patching this software: it's been unchanged since 1995. Setting |
Contributor
|
I've incorporated @FliegendeWurst's changes and fixed the build without patching in #404065. If you're ok, I will close this PR and merge that. |
Contributor
Author
|
go for it ! thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#388196
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.