about summary refs log tree commit diff
path: root/pkgs/applications/graphics/alchemy/default.nix
blob: 6a212a7a931d03cd8a43a08264834c700c414c01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{stdenv, fetchurl, jre}:

stdenv.mkDerivation {
  name = "alchemy-007";
  enableParallelBuilding = true;

  src = fetchurl {
    url = http://al.chemy.org/files/Alchemy-007.tar.gz;
    sha256 = "1pk00m4iajvv9jzv96in10czpcf7zc3d4nmd9biqagpsg28mr70b";
  };

  installPhase = ''
    ensureDir $out/bin $out/share
    cp -a . $out/share/alchemy
    cat >> $out/bin/alchemy << EOF
    #!/bin/sh
    cd $out/share/alchemy
    ${jre}/bin/java -jar Alchemy.jar "$@"
    EOF
    chmod +x $out/bin/alchemy
  '';

  meta = {
    description = "Drawing application";
    homepage = http://al.chemy.org/;
    license = stdenv.lib.licenses.gpl3Plus;
    maintainers = [stdenv.lib.maintainers.marcweber];
    platforms = stdenv.lib.platforms.linux;
  };
}