11 stripJavaArchivesHook,
14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
21 rev = "bc00c6883bac0d09b549e35a10e202da477e4cb1";
22 hash = "sha256-nXxTKbhvrBlorNqiF3wZDEgf1VrBamWw8ZSQSUqpGT8=";
33 nativeBuildInputs = [ ant jdk stripJavaArchivesHook makeWrapper wrapGAppsHook4 copyDesktopItems ];
38 install -Dm644 jailer.jar $out/share/java/jailer.jar
39 install -Dm644 jailer-engine-${finalAttrs.version}.jar $out/share/java/
40 mkdir -p $out/share/java/lib
41 for f in lib/*.jar; do
42 install -Dm644 $f $out/share/java/lib
47 mkdir -p $out/share/pixmaps
48 cp driverlist.csv $out/share
49 cp admin/jailer.png $out/share/pixmaps
51 # On first run, create a local configuration folder and copy driverlist.csv there.
52 cat << EOF > $out/bin/jailer
54 CFG="''${XDG_CONFIG_HOME:-\$HOME/.config}/jailer"
56 cp -n $out/share/driverlist.csv \$CFG
58 _JAVA_AWT_WM_NONREPARENTING=1 ${jre}/bin/java -jar $out/share/java/jailer.jar
60 chmod +x $out/bin/jailer
68 desktopName = "Jailer";
71 categories = [ "Development" ];
76 description = "Tool for database subsetting and relational data browsing";
77 license = lib.licenses.asl20;
78 homepage = "https://github.com/Wisser/Jailer";
79 changelog = "https://github.com/Wisser/Jailer/releases/tag/${finalAttrs.version}";
80 maintainers = with lib.maintainers; [ guillaumematheron ];
81 mainProgram = "jailer";