mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
37 lines
861 B
Nix
37 lines
861 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "u3-tool";
|
|
version = "1.0";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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=";
|
|
};
|
|
|
|
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 = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
mainProgram = "u3-tool";
|
|
};
|
|
})
|