u3-tool: 0.3 -> 1.0

somehow only the version 0.3 is available in sourceforge
as 'download'. However in svn the final release
can be fetched. The same release is available
for direct download via the mirror://sourceforge url

the package now uses finalAttrs in favour of rec
This commit is contained in:
makefu
2024-11-20 23:16:59 +01:00
parent 644c1802f0
commit bdedbe34dd
+5 -4
View File
@@ -1,16 +1,17 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "u3-tool";
version = "0.3";
version = "1.0";
enableParallelBuilding = true;
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
url = "mirror://sourceforge/${finalAttrs.pname}/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
sha256 = "1p9c9kibd1pdbdfa0nd0i3n7bvzi3xg0chm38jg3xfl8gsn0390f";
};
meta = with lib; {
description = "Tool for controlling the special features of a 'U3 smart drive' USB Flash disk";
homepage = "https://sourceforge.net/projects/u3-tool/";
@@ -19,4 +20,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ makefu ];
mainProgram = "u3-tool";
};
}
})