package.nix (907B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libiconv, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "gimgtools"; 10 version = "0.01-unstable-2013-09-19"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "wuyongzheng"; 16 repo = "gimgtools"; 17 rev = "92d015749e105c5fb8eb704ae503a5c7e51af2bd"; 18 hash = "sha256-AgZqczhYr5frD9Id75if/38O057BC6YfeGquFpidKZI="; 19 }; 20 21 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv; 22 23 makeFlags = [ "CC:=$(CC)" ]; 24 25 installPhase = '' 26 for tool in gimginfo gimgfixcmd gimgxor gimgunlock gimgch gimgextract cmdc; do 27 install -Dm755 $tool -t $out/bin 28 done 29 ''; 30 31 meta = { 32 description = "Garmin Image Tools"; 33 homepage = "https://github.com/wuyongzheng/gimgtools"; 34 license = lib.licenses.gpl2; 35 maintainers = [ lib.maintainers.sikmir ]; 36 platforms = lib.platforms.unix; 37 broken = stdenv.isDarwin; 38 }; 39 })
