11 stripJavaArchivesHook,
14 stdenv.mkDerivation (finalAttrs: {
18 src = fetchFromGitHub {
21 rev = "bc00c6883bac0d09b549e35a10e202da477e4cb1";
22 hash = "sha256-nXxTKbhvrBlorNqiF3wZDEgf1VrBamWw8ZSQSUqpGT8=";
44 install -Dm644 jailer.jar $out/share/java/jailer.jar
45 install -Dm644 jailer-engine-${finalAttrs.version}.jar $out/share/java/
46 mkdir -p $out/share/java/lib
47 for f in lib/*.jar; do
48 install -Dm644 $f $out/share/java/lib
53 mkdir -p $out/share/pixmaps
54 cp driverlist.csv $out/share
55 cp admin/jailer.png $out/share/pixmaps
57 # On first run, create a local configuration folder and copy driverlist.csv there.
58 cat << EOF > $out/bin/jailer
60 CFG="''${XDG_CONFIG_HOME:-\$HOME/.config}/jailer"
62 cp -n $out/share/driverlist.csv \$CFG
64 _JAVA_AWT_WM_NONREPARENTING=1 ${jre}/bin/java -jar $out/share/java/jailer.jar
66 chmod +x $out/bin/jailer
74 desktopName = "Jailer";
77 categories = [ "Development" ];
82 description = "Tool for database subsetting and relational data browsing";
83 license = lib.licenses.asl20;
84 homepage = "https://github.com/Wisser/Jailer";
85 changelog = "https://github.com/Wisser/Jailer/releases/tag/${finalAttrs.version}";
86 maintainers = with lib.maintainers; [ guillaumematheron ];
87 mainProgram = "jailer";