2012-06-08 11:16:46 +01:00
|
|
|
# The releases of this project are apparently precompiled to .jar files.
|
|
|
|
|
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "0.9";
|
|
|
|
sha256 = "45dd668a9ceb9cd59529a9fefe422a002ee1554a61be07e6fc8b3baf33d733d9";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "briss-${version}";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/briss/briss-${version}.tar.gz";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin";
|
|
|
|
mkdir -p "$out/share";
|
|
|
|
install -D -m444 -t "$out/share" *.jar
|
|
|
|
echo "#!/bin/sh" > "$out/bin/briss"
|
|
|
|
echo "${jre}/bin/java -Xms128m -Xmx1024m -cp \"$out/share/\" -jar \"$out/share/briss-${version}.jar\"" >> "$out/bin/briss"
|
|
|
|
chmod +x "$out/bin/briss"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://sourceforge.net/projects/briss/;
|
2012-06-08 11:16:46 +01:00
|
|
|
description = "Java application for cropping PDF files";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2012-06-08 11:16:46 +01:00
|
|
|
};
|
|
|
|
}
|