bin.nix (903B)
1 { lib, stdenv, fetchurl, undmg }: 2 3 stdenv.mkDerivation rec { 4 pname = "goldendict-bin"; 5 version = "1.5.0-RC2-372-gc3ff15f"; 6 7 src = fetchurl { 8 url = "https://downloads.sourceforge.net/project/goldendict/early%20access%20builds/MacOS/GoldenDict-${version}%28Qt_5121%29.dmg"; 9 sha256 = "1zvkwnpsybflgbgs3dvjcivrdpq4fc8njb96nsw507dmbnysq15w"; 10 name = "Goldendict-${version}.dmg"; 11 }; 12 13 preferLocalBuild = true; 14 15 nativeBuildInputs = [ undmg ]; 16 17 installPhase = '' 18 mkdir -p $out/Applications/GoldenDict.app 19 cp -r . $out/Applications/GoldenDict.app 20 ''; 21 22 meta = with lib; { 23 description = "A feature-rich dictionary lookup program"; 24 homepage = "http://goldendict.org/"; 25 sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 26 license = licenses.gpl3Plus; 27 maintainers = [ maintainers.sikmir ]; 28 platforms = [ "x86_64-darwin" ]; 29 skip.ci = true; 30 }; 31 }