-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
udpt: 2017-09-27 -> 3.1.1 #93586
udpt: 2017-09-27 -> 3.1.1 #93586
Conversation
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.
We usually drop /usr
from the locations.
And generally, if this is an example config, maybe $out/etc/udpt/udpt.toml
or $out/share/udpt/udpt.toml
are more appropriate?
<literal>udpt</literal> experienced a complete rewrite from C++ to rust. The configuration format changed from ini to toml. | ||
The new configuration documentation can be found at | ||
<link xlink:href="https://naim94a.github.io/udpt/config.html">the official website</link> and example | ||
configuration is packaged in <literal>${udpt}/usr/lib/udpt/udpt.toml</literal>. |
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.
configuration is packaged in <literal>${udpt}/usr/lib/udpt/udpt.toml</literal>. | |
configuration is packaged in <literal>${udpt}/lib/udpt/udpt.toml</literal>. |
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 agree, is there a convention which files go where? Upstream uses /usr/src
which didn't really convince me as well :)
pkgs/servers/udpt/default.nix
Outdated
# without this, the resulting binary is unstripped. | ||
runHook postInstall | ||
postInstall = '' | ||
install -D udpt.toml $out/usr/lib/udpt/udpt.toml |
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.
install -D udpt.toml $out/usr/lib/udpt/udpt.toml | |
install -D udpt.toml $out/lib/udpt/udpt.toml |
i went for |
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 get hash mismatches in the fixed-output derivation both on ofborg and locally.
#79975 probably. |
udpt did a complete rewrite from cpp to rust. This Commit uses rust with cargo to build the package. The Configuration format changed form .conf to .toml and the binary changed from udpt to udpt-rs
@flokli thanks for investigating! i've fixed the cargo hash. |
Motivation for this change
udpt did a complete rewrite from cpp to rust.
This Commit uses rust with cargo to build the package.
The Configuration format changed form .conf to .toml and
the binary changed from udpt to udpt-rs
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)