lol

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

authored by

Donovan Glover and committed by
GitHub
b14b1058 4343b4f0

+25 -11
+25 -11
pkgs/by-name/u3/u3-tool/package.nix
··· 1 - { lib, stdenv, fetchurl }: 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + autoreconfHook, 6 + pkg-config, 7 + }: 2 8 3 - stdenv.mkDerivation rec { 9 + stdenv.mkDerivation (finalAttrs: { 4 10 pname = "u3-tool"; 5 - version = "0.3"; 11 + version = "1.0"; 6 12 7 13 enableParallelBuilding = true; 8 14 9 - src = fetchurl { 10 - url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 11 - sha256 = "1p9c9kibd1pdbdfa0nd0i3n7bvzi3xg0chm38jg3xfl8gsn0390f"; 15 + src = fetchFromGitHub { 16 + # original sourceforge mirror does not provide direct access to tag 1.0 17 + owner = "marcusrugger"; 18 + repo = "u3-tool"; 19 + rev = "${finalAttrs.pname}-${finalAttrs.version}"; 20 + hash = "sha256-c3cfWUUT5lwy8OedAtwvhuNEa5hgfwrKGJPY/zAlALw="; 12 21 }; 13 22 14 - meta = with lib; { 23 + nativeBuildInputs = [ 24 + pkg-config 25 + autoreconfHook 26 + ]; 27 + 28 + meta = { 15 29 description = "Tool for controlling the special features of a 'U3 smart drive' USB Flash disk"; 16 30 homepage = "https://sourceforge.net/projects/u3-tool/"; 17 - license = licenses.gpl2Plus; 18 - platforms = with platforms; linux; 19 - maintainers = with maintainers; [ makefu ]; 31 + license = lib.licenses.gpl2Plus; 32 + platforms = lib.platforms.linux; 33 + maintainers = with lib.maintainers; [ makefu ]; 20 34 mainProgram = "u3-tool"; 21 35 }; 22 - } 36 + })