package.nix (1053B)
1 { 2 lib, 3 stdenv, 4 fetchfromgh, 5 unzip, 6 jre, 7 makeWrapper, 8 }: 9 10 stdenv.mkDerivation (finalAttrs: { 11 pname = "i18n-editor"; 12 version = "2.0.0-beta.1"; 13 14 __structuredAttrs = true; 15 16 src = fetchfromgh { 17 owner = "jcbvm"; 18 repo = "i18n-editor"; 19 tag = finalAttrs.version; 20 hash = "sha256-koJdCmcM9mH4D4JSyyi0i/zRCUeI6pYdMmS7SaC56aY="; 21 name = "i18n-editor-${finalAttrs.version}.zip"; 22 }; 23 24 sourceRoot = "."; 25 26 nativeBuildInputs = [ 27 makeWrapper 28 unzip 29 ]; 30 31 buildInputs = [ jre ]; 32 33 installPhase = '' 34 install -dm755 $out/bin 35 install -Dm644 i18n-editor.jar -t $out/share/java 36 37 makeWrapper ${jre}/bin/java $out/bin/i18n-editor \ 38 --add-flags "-jar $out/share/java/i18n-editor.jar" 39 ''; 40 41 meta = { 42 description = "GUI for editing your i18n translation files"; 43 homepage = "https://github.com/jcbvm/i18n-editor"; 44 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 45 license = lib.licenses.mit; 46 maintainers = [ lib.maintainers.sikmir ]; 47 platforms = jre.meta.platforms; 48 }; 49 })
