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