Skip to content

Commit

Permalink
u3-tool: 0.3 -> 1.0 (#351980)
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover authored Nov 24, 2024
2 parents 4343b4f + 7496b4c commit b14b105
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions pkgs/by-name/u3/u3-tool/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
})

0 comments on commit b14b105

Please sign in to comment.