urserver: use finalAttrs instead of rec
This commit is contained in:
parent
ad594b4503
commit
ce845d58a1
1 changed files with 4 additions and 4 deletions
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue