Merge pull request #93586 from makefu/pkgs/udpt/bump
udpt: 2017-09-27 -> 3.1.1
This commit is contained in:
commit
d5aa8ff17c
@ -525,6 +525,14 @@ systemd.services.nginx.serviceConfig.ReadWritePaths = [ "/var/www" ];
|
|||||||
automatically if <literal>stateVersion</literal> is 20.09 or higher.
|
automatically if <literal>stateVersion</literal> is 20.09 or higher.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
<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}/share/udpt/udpt.toml</literal>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
We now have a unified <xref linkend="opt-services.xserver.displayManager.autoLogin"/> option interface
|
We now have a unified <xref linkend="opt-services.xserver.displayManager.autoLogin"/> option interface
|
||||||
|
@ -1,45 +1,21 @@
|
|||||||
{ stdenv, fetchFromGitHub, boost, sqlite, cmake, gtest }:
|
{ stdenv, rustPlatform, fetchFromGitHub }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "udpt";
|
pname = "udpt";
|
||||||
version = "2017-09-27";
|
version = "3.1.0";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
# Suitable for a network facing daemon.
|
|
||||||
hardeningEnable = [ "pie" ];
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "naim94a";
|
owner = "naim94a";
|
||||||
repo = "udpt";
|
repo = "udpt";
|
||||||
rev = "e0dffc83c8ce76b08a41a4abbd5f8065535d534f";
|
rev = "${pname}-${version}";
|
||||||
sha256 = "187dw96mzgcmh4k9pvfpb7ckbb8d4vlikamr2x8vkpwzgjs3xd6g";
|
sha256 = "1g6l0y5x9pdra3i1npkm474glysicm4hf2m01700ack2rp43vldr";
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
cargoSha256 = "1cmd80ndjxdmyfjpm1f04rwf64501nyi6wdsj7lxidgd1v92wy2c";
|
||||||
|
verifyCargoDeps = true;
|
||||||
|
|
||||||
checkPhase = ''
|
postInstall = ''
|
||||||
runHook preCheck
|
install -D udpt.toml $out/share/udpt/udpt.toml
|
||||||
|
|
||||||
make test
|
|
||||||
|
|
||||||
runHook postCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [ boost sqlite cmake gtest ];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Enabling optimization (implied by fortify hardening) causes htons
|
|
||||||
# to be re-defined as a macro, turning this use of :: into a syntax error.
|
|
||||||
sed -i '104a#undef htons' src/udpTracker.cpp
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin $out/etc/
|
|
||||||
cp udpt $out/bin
|
|
||||||
cp ../udpt.conf $out/etc/
|
|
||||||
# without this, the resulting binary is unstripped.
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user