-
-
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
Add Mindforger-1.48 #50851
Add Mindforger-1.48 #50851
Conversation
version = "1.48.2"; | ||
|
||
src = fetchurl { | ||
url = "https://github.com/dvorka/mindforger/releases/download/1.48.0/mindforger_${version}.tgz"; |
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.
That looks weird, but it's not your fault. Upstream has a creative use of tags >;<
|
||
doCheck = true; | ||
|
||
patches = [ ./build.patch ] ; |
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 should submit that patch upstream too.
Also I think you could do the same thing with substituteInPlace file.pro --replace "/usr" $out
from your default.nix (saves storing a patch along with it) ? I'll test locally.
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.
Patch is little bit more complex, than just replacement of /usr
то $out
AFAIR
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.
Hello and thank you for the contribution to nixos/nixpkgs.
I left some comments for you to consider.
Also, please squash all your commits into one and write a commit message according to our guidelines:
https://nixos.org/nixpkgs/manual/#submitting-changes-making-patches
( here it should be mindforger: init at 1.48.2
)
I get this trying to build on nixos-18.09 with sandboxing: /build/mindforger_1.48.2/deps/discount /build/mindforger_1.48.2
configure requires a functional version of tr
./configure.sh: ./configure.inc: line 107: 5: Bad file descriptor with |
I have coreutils-8.30 in nixpkgs and it builds. AC_TR=`acLookFor tr`
if [ "$AC_TR" ]; then
# try posix-style tr
ABC=`echo abc | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
if [ "$ABC" = "ABC" ]; then
AC_UPPERCASE="$AC_TR abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ"
AC_UPPER_PAT="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
else
ABC=`echo abc | tr a-z A-Z`
if [ "$ABC" = "ABC" ]; then
AC_UPPERCASE="$AC_TR a-z A-Z"
AC_UPPER_PAT="A-Z"
else
ABC=`echo abc | tr '[a-z]' '[A-Z]'`
if [ "$ABC" = "ABC" ]; then
AC_UPPERCASE="$AC_TR '[a-z]' '[A-Z]'"
AC_UPPER_PAT="'[A-Z]'"
else
AC_FAIL "$AC_TR cannot translate lowercase to uppercase"
return 0
fi
fi
fi
else
AC_FAIL "configure requires a functional version of tr"
fi Here is a script. Looks like it can not find working |
This fixes the |
Is ccache needed for the build, or useful for non-sandbox building? If the latter then it should be removed before merging. Also, I think this should have |
Hmm, the (Thank you!! Not your fault all these things need addressing haha :3) |
@dtzWill Thanks! How |
And using |
@@ -14,6 +14,8 @@ stdenv.mkDerivation rec { | |||
|
|||
doCheck = true; | |||
|
|||
enableParallelBuilding = true ; |
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.
Note: no harm in making it explicit.
But with cmake, meson and qmake this is actually the default. See https://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes
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.
Oh, I missed that! Good to know for sure, thanks!
Something like:
Maybe? I would expect it's just hard-coded so it can be done during postPatch -- which is nice to see if it's fixed without needing to build first :D. |
in postPatch or in postInstall directly on the installed desktop file |
Where can I see how to call |
Not for this particular case, but in general |
I guess https://nixos.org/nixpkgs/manual/#ssec-stdenv-functions is the best source |
Ok thanks. |
@GrahamcOfBorg build mindforger |
Failure on aarch64-linux (full log) Attempted: mindforger Partial log (click to expand)
|
Timed out, unknown build status on x86_64-linux (full log) Attempted: mindforger Partial log (click to expand)
|
Looks like binary cache not ready yet |
I think it is not supported in upstream. Can I limit architectures to build this package on? |
@GrahamcOfBorg build mindforger |
(only trusted users can invoke the bot :) ) @GrahamcOfBorg build mindforger |
Success on x86_64-linux (full log) Attempted: mindforger Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: mindforger Partial log (click to expand)
|
Well now this is ready. :) |
Cool! |
Add another package for nixpkgs users
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)