package.nix (786B)
1 { 2 lib, 3 stdenv, 4 fetchurl, 5 }: 6 7 stdenv.mkDerivation (finalAttrs: { 8 pname = "imgdecode"; 9 version = "1.1"; 10 11 __structuredAttrs = true; 12 13 src = fetchurl { 14 url = "mirror://sourceforge/garmin-img/imgdecode-${finalAttrs.version}.tar.gz"; 15 hash = "sha256-VQC9o/QOti6jTCYi4ktH6UKZLPLwLOUAfosZftf+uWc="; 16 }; 17 18 postPatch = '' 19 substituteInPlace garminimg.cc \ 20 --replace-fail "<stdio.h>" "<cstring>" 21 ''; 22 23 configurePhase = "./configure || true"; 24 25 installPhase = "install -Dm755 imgdecode -t $out/bin"; 26 27 meta = { 28 description = "IMG Decoder"; 29 homepage = "https://sourceforge.net/projects/garmin-img/"; 30 license = lib.licenses.bsd3; 31 maintainers = [ lib.maintainers.sikmir ]; 32 platforms = lib.platforms.linux; 33 skip.ci = stdenv.isDarwin; 34 }; 35 })
