-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
ttaenc: init at 3.4.1 #238757
base: master
Are you sure you want to change the base?
ttaenc: init at 3.4.1 #238757
Conversation
7a577a5
to
12cb7e2
Compare
754aa54
to
769756a
Compare
Please format the commit message as "maintainers: add natsukagami" |
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.
looks good to me other then the two comments
oh and you should add |
769756a
to
e492d93
Compare
e492d93
to
5697545
Compare
e45118b
to
171edcd
Compare
Hey, I left nixpkgs some time ago and thus won't be reviewing this PR anymore. #323901 |
|
||
preBuild = '' | ||
# From the Makefile, with `-msse` removed, since we have those on by x86_64 by default. | ||
makeFlagsArray+=(CFLAGS="-Wall -O3 -fomit-frame-pointer -funroll-loops -fforce-addr -falign-functions=4") |
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.
just out of curiosity, is there a reason you used this here instead of just adding to the makeFlags
attribute? does it operate semantically differently?
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 think this has something to do with my CFLAGS having spaces inside. I wasn't able to figure out how to do that with makeFlags
, and saw some other nixpkgs derivation doing this instead, so I copied
postInstall = '' | ||
# Copy docs | ||
install -dm755 "$out/share/doc/${finalAttrs.name}" | ||
install -m644 "ChangeLog-${finalAttrs.version}" README "$out/share/doc/${finalAttrs.name}" |
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.
nit: these two could be merged into one install -Dm755 -t $out/share/doc/${finalAttrs.name} ChangeLog-${finalAttrs.version} README
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.
Didn't know that, looks cool! Would it keep the latter files at 0644 permission?
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.
Good point actually. The default umask
should enforce 644 but it isn't explicit. In that regards yours is better.
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.
main concern is the merge conflict, everything else looks good though. tested the binary using nixpkgs-review pr --checkout commit 238757
and it works.
also if you havent already, running nixfmt
on this would be nice (though it already seems formatted)
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.
please fix the merge conflict, then lgtm!
With email matching GPG key, and other info
171edcd
to
835467b
Compare
Result of 1 package built:
|
835467b
to
4aa4f39
Compare
4aa4f39
to
3c88fb3
Compare
Some patches introduced to make it compile on darwin, tested by a friend |
Description of changes
ttaenc homepage: https://sourceforge.net/projects/tta/ and http://tta.tausoft.org/
build adapted from the AUR package https://aur.archlinux.org/packages/ttaenc
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)