u3-tool: 0.3 -> 1.0 (#351980)

This commit is contained in:
Donovan Glover
2024-11-24 21:05:30 +00:00
committed by GitHub
+25 -11
View File
@@ -1,22 +1,36 @@
{ lib, stdenv, fetchurl }:
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
}:
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";
sha256 = "1p9c9kibd1pdbdfa0nd0i3n7bvzi3xg0chm38jg3xfl8gsn0390f";
src = fetchFromGitHub {
# original sourceforge mirror does not provide direct access to tag 1.0
owner = "marcusrugger";
repo = "u3-tool";
rev = "${finalAttrs.pname}-${finalAttrs.version}";
hash = "sha256-c3cfWUUT5lwy8OedAtwvhuNEa5hgfwrKGJPY/zAlALw=";
};
meta = with lib; {
nativeBuildInputs = [
pkg-config
autoreconfHook
];
meta = {
description = "Tool for controlling the special features of a 'U3 smart drive' USB Flash disk";
homepage = "https://sourceforge.net/projects/u3-tool/";
license = licenses.gpl2Plus;
platforms = with platforms; linux;
maintainers = with maintainers; [ makefu ];
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ makefu ];
mainProgram = "u3-tool";
};
}
})