diff options
author | Sebastien Braun <sebastien@sebbraun.de> | 2020-11-24 18:50:08 +0100 |
---|---|---|
committer | Sebastien Braun <sebastien@sebbraun.de> | 2020-11-24 18:50:08 +0100 |
commit | 26fa0edfd993df62b1beca1fce54ec402d4a13dc (patch) | |
tree | 7a23766641869192ac165955f67eaba252c44866 /pkgs/applications/graphics/batik | |
parent | 4725ad214aa30b6186309c9d7c0301d03815d3dd (diff) |
batik: replace builder script by installPhase
Diffstat (limited to 'pkgs/applications/graphics/batik')
-rwxr-xr-x | pkgs/applications/graphics/batik/builder.sh | 7 | ||||
-rw-r--r-- | pkgs/applications/graphics/batik/default.nix | 8 |
2 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/applications/graphics/batik/builder.sh b/pkgs/applications/graphics/batik/builder.sh deleted file mode 100755 index be8e6985ea26..000000000000 --- a/pkgs/applications/graphics/batik/builder.sh +++ /dev/null @@ -1,7 +0,0 @@ -set -e - -source $stdenv/setup - -tar xzvf $src -mkdir $out -mv batik-* $out/batik diff --git a/pkgs/applications/graphics/batik/default.nix b/pkgs/applications/graphics/batik/default.nix index 594508dfb043..52a2589b409c 100644 --- a/pkgs/applications/graphics/batik/default.nix +++ b/pkgs/applications/graphics/batik/default.nix @@ -1,10 +1,9 @@ -{stdenv, fetchurl, unzip}: +{stdenv, fetchurl}: stdenv.mkDerivation rec { pname = "batik"; version = "1.13"; - builder = ./builder.sh; src = fetchurl { url = "mirror://apache/xmlgraphics/batik/binaries/batik-bin-${version}.tar.gz"; sha256 = "16sq90nbs6psgm3xz30sbs6r5dnpd3qzsvr1xvnp4yipwjcmhmkw"; @@ -16,4 +15,9 @@ stdenv.mkDerivation rec { license = licenses.asl20; platforms = platforms.unix; }; + + installPhase = '' + mkdir $out + cp -r * $out/ + ''; } |