urserver: use finalAttrs instead of rec

This commit is contained in:
Stefan Frijters 2024-03-25 23:25:31 +01:00
parent ad594b4503
commit ce845d58a1
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

View file

@ -7,12 +7,12 @@
, makeWrapper
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "urserver";
version = "3.13.0.2505";
src = fetchurl {
url = "https://www.unifiedremote.com/static/builds/server/linux-x64/${builtins.elemAt (builtins.splitVersion version) 3}/urserver-${version}.tar.gz";
url = "https://www.unifiedremote.com/static/builds/server/linux-x64/${builtins.elemAt (builtins.splitVersion finalAttrs.version) 3}/urserver-${finalAttrs.version}.tar.gz";
hash = "sha256-rklv6Ppha1HhEPunbL8ELYdQ9Z1FN4FrVsNwny3/gA4=";
};
@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
installPhase = ''
install -m755 -D urserver $out/bin/urserver
wrapProgram $out/bin/urserver --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}"
wrapProgram $out/bin/urserver --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.buildInputs}"
cp -r remotes $out/bin/remotes
cp -r manager $out/bin/manager
'';
@ -43,4 +43,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ sfrijters ];
platforms = [ "x86_64-linux" ];
};
}
})