-
-
Notifications
You must be signed in to change notification settings - Fork 15.4k
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
routino: init at 3.2 #29755
routino: init at 3.2 #29755
Conversation
pkgs/tools/misc/routino/default.nix
Outdated
{ stdenv, fetchsvn, perl, zlib, bzip2 }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "Routino-${version}"; |
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.
Lowercase routino? (Possible typo?) If not sorry for the noise.
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.
https://nixos.org/nixpkgs/manual/#sec-package-naming :
Don’t use uppercase letters in the name attribute — e.g., "mplayer-1.0rc2" instead of "MPlayer-1.0rc2".
Do you think it should be uppercase everywhere, even in |
Just the latter, sorry I wasn't clear. |
I did this because they write
|
You can merge this now |
ping |
(I can't merge btw, no commit rights.) |
pkgs/tools/misc/routino/default.nix
Outdated
version = "3.2"; | ||
|
||
src = fetchsvn { | ||
url = "http://routino.org/svn/trunk/"; |
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.
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.
You're right, that's more elegant.
pkgs/tools/misc/routino/default.nix
Outdated
make DESTDIR="$out" install | ||
mv $out/usr/local/* $out | ||
rmdir $out/usr/local $out/usr | ||
''; |
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.
Replace this with makeFlags = [ "prefix=$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.
I could indeed do installFlags = [ "DESTDIR=$out" ];
.
But nevertheless, the install target creates a directory $out/usr/local
from which I can move the content to $out
in the postInstall
phase.
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.
I'm just remebering that this doesn't work either:
I intentionally wrote make DESTDIR="$out" install
since if I don't quote the variable, the package is installed to a directory called ut/
.
I tried every way of escaping/quoting I was able to come up with:
installFlags = [ ''DESTDIR="$out"'' ]
installFlags = [ "DESTDIR=\$out" ]
- ...
but the package is always installed to ut/
.
Do you have an idea?
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.
No, that /usr/local
comes from the default prefix
in the Makefile. If you define it with makeFlags = [ "prefix=$out" ];
, you will not have to override DESTDIR
.
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.
You're absolutely right, but makeFlags = [ "prefix=$out" ];
won't work.
For some strange reason, you need "prefix=$(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.
Sorry, prefix
indeed is not overridable with a make flag. I would try substituteInPlace Makefile.conf --replace prefix=/usr/local prefix=$out
in the postPatch
phase.
Install phase prints this, but exits with code 0. Is this OK?
|
I don't see the error with the icon anymore. Can you please check if that's the case on your side as well? |
I don't see this error too. I had to change |
Okay, thats fine with me :) |
Motivation for this change
I need this for QMapShack, which I want to package next.
Even though the installation instructions talk about setting up a web interface, I have no use for this and I even don't know how to package that properly. Therefore I just didn't care about it.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)