default.nix (1028B)
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 src = fetchfromgh { 15 owner = "jcbvm"; 16 repo = "i18n-editor"; 17 name = "i18n-editor-${finalAttrs.version}.zip"; 18 hash = "sha256-koJdCmcM9mH4D4JSyyi0i/zRCUeI6pYdMmS7SaC56aY="; 19 inherit (finalAttrs) version; 20 }; 21 22 sourceRoot = "."; 23 24 nativeBuildInputs = [ 25 makeWrapper 26 unzip 27 ]; 28 29 buildInputs = [ jre ]; 30 31 installPhase = '' 32 install -dm755 $out/bin 33 install -Dm644 i18n-editor.jar -t $out/share/java 34 35 makeWrapper ${jre}/bin/java $out/bin/i18n-editor \ 36 --add-flags "-jar $out/share/java/i18n-editor.jar" 37 ''; 38 39 meta = { 40 description = "GUI for editing your i18n translation files"; 41 homepage = "https://github.com/jcbvm/i18n-editor"; 42 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 43 license = lib.licenses.mit; 44 maintainers = [ lib.maintainers.sikmir ]; 45 platforms = jre.meta.platforms; 46 }; 47 })