git.iko.soy/typeable/nixpkgs
on master help sign in
katai-struct-compiler: init at 0.9
commit4e3fcf6816966e8563731edeb0c53b3a8b6ac383 authorLuis-Hebendanz <luis.nixos@gmail.com> dateTue 7 Dec 2021, 16:31 (5 years ago) parent6bd1daa
2 files changed+38
pkgs/development/compilers/kaitai-struct-compiler/default.nix+36 pkgs/top-level/all-packages.nix+2
pkgs/development/compilers/kaitai-struct-compiler/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, stdenv
3+, fetchzip
4+, openjdk8
5+, makeWrapper
6+}:
7+
8+
9+stdenv.mkDerivation rec {
10+ pname = "kaitai-struct-compiler";
11+ version = "0.9";
12+
13+ src = fetchzip {
14+ url = "https://github.com/kaitai-io/kaitai_struct_compiler/releases/download/${version}/kaitai-struct-compiler-${version}.zip";
15+ sha256 = "sha256-2HSasigpJDuWNejNVklnpQwaA4MC030S9taF/7YvzgY=";
16+ };
17+
18+ nativeBuildInputs = [ makeWrapper ];
19+
20+ installPhase = ''
21+ install -D $src/bin/kaitai-struct-compiler $out/bin/kaitai-struct-compiler
22+ ln -s $out/bin/kaitai-struct-compiler $out/bin/ksc
23+ cp -R $src/lib $out/lib
24+ wrapProgram $out/bin/kaitai-struct-compiler --prefix PATH : ${lib.makeBinPath [ openjdk8 ] }
25+ '';
26+
27+ meta = with lib; {
28+ homepage = "https://github.com/kaitai-io/kaitai_struct_compiler";
29+ description =
30+ "Compiler to generate binary data parsers in C++ / C# / Go / Java / JavaScript / Lua / Perl / PHP / Python / Ruby ";
31+ license = licenses.gpl3Only;
32+ maintainers = with maintainers; [ luis ];
33+ platforms = platforms.unix;
34+ };
35+}
36+
pkgs/top-level/all-packages.nix+2
@@ -22270,6 +22270,8 @@ with pkgs;
2227022270
2227122271 lsiutil = callPackage ../os-specific/linux/lsiutil { };
2227222272
22273+ kaitai-struct-compiler = callPackage ../development/compilers/kaitai-struct-compiler { };
22274+
2227322275 kmod = callPackage ../os-specific/linux/kmod { };
2227422276
2227522277 kmod-blacklist-ubuntu = callPackage ../os-specific/linux/kmod-blacklist-ubuntu { };