-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Revert "river: refactor" #121405
Revert "river: refactor" #121405
Conversation
Result of 1 package built successfully:
1 suggestion:
Result of 1 package built successfully:
|
''; | ||
|
||
nativeBuildInputs = [ zig wayland scdoc pkg-config ]; | ||
|
||
installFlags = [ "DESTDIR=$(out)" ]; |
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.
It should not be needed. DESTDIR has the same semantics of autotools' DESTDIR variable; therefore, it is not useful for Nix.
DESTDIR is useful for classic package managers/build scripts like Slackbuilds or PKGBUILDs.
It will be long...
That was my fault. I just followed the AUR script here. It repeats the command adding the 'install' argument in the second invocation. It looks like the same principle of calling Also, it looked strange conflating the build and install phases in a single one. This way, the AUR script looks plausible. But I should have looked the build logs. Indeed it rebuilds the whole tree. My fault, my maximum fault. On the other hand, there is another way to make the expression more nixy: use
Hook on a prebuild? On the other hand,, adding runHook is mandatory - look at the @r-rmcgibbo suggestion above. |
Here I will differ. A If a long description is to be included, there is no problem in copying sentences directly from upstream README. Indeed, this is the regular practice among nixpkgs expressions, and it conveys a useful introduction about the package ("minimalist, stacked", "rivertile and riverctl" etc.). Also, this is not superlong at all - it ocuppies less than 15% of the file. Else, just remove |
For now I will revert. |
I will just add runHook after next update, for now just DESTDIR creates folder with manpages and 3 binaries in river derivation folder, without it won't work and that one mentioned in zig's github is included in nightly build where we are using 0.7.1 which is stable and miss a lot of features |
There is no need to set DESTDIR:
2019, release 0.5.0.
The readmie recommends 0.7.1, not the master branch. Nothing of you said makes sense. |
None of your changes make sense, same as what you said comparing derivations to completelly different PKGBUILDs.... |
specific phases are discouraged, as phases such as "fixupPhase" still help with nixification (patching shebangs, etc). or at the very least, you should be including |
"Completely different"? Nixpkgs is not an "esoteric" system like Windows or OS/2. It is a package manager that expects a typical GNU environment and executes Bash scripts to perform its tasks. Hey, you quoted KISS Linux! Things that affect other package managers in general affect Nixpkgs in a similar manner: deprecation of unmaintained software, unstable upstream dependencies, patches &c. Indeed, you can look at the source code of many derivations and notice that they use patches from Arch, Debian, and even Gentoo. Such things would be impossible in "completely different" environments. You assertion of "completely different" is unwarranted at least. |
Reverts #121357
Why revert?
zig build
in preBuild phase