Skip to content

Commit 96aca75

Browse files
committed
gupnp_1_6: Use finalAttrs
1 parent 0443142 commit 96aca75

File tree

1 file changed

+4
-4
lines changed
  • pkgs/development/libraries/gupnp

1 file changed

+4
-4
lines changed

pkgs/development/libraries/gupnp/1.6.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
gnome,
1616
}:
1717

18-
stdenv.mkDerivation rec {
18+
stdenv.mkDerivation (finalAttrs: {
1919
pname = "gupnp";
2020
version = "1.6.8";
2121

@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
2626
];
2727

2828
src = fetchurl {
29-
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
29+
url = "mirror://gnome/sources/gupnp/${lib.versions.majorMinor finalAttrs.version}/gupnp-${finalAttrs.version}.tar.xz";
3030
hash = "sha256-cKADzr1oV3KT+z5q9J/5AiA7+HaLL8XWUd3B8PoeEek=";
3131
};
3232

@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
6565
passthru = {
6666
updateScript = gnome.updateScript {
6767
attrPath = "gupnp_1_6";
68-
packageName = pname;
68+
packageName = "gupnp";
6969
};
7070
};
7171

@@ -76,4 +76,4 @@ stdenv.mkDerivation rec {
7676
license = licenses.lgpl2Plus;
7777
platforms = platforms.unix;
7878
};
79-
}
79+
})

0 commit comments

Comments
 (0)