diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-06-17 00:50:55 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-11-24 14:45:15 +0100 |
commit | ddb9c3b7013d25293c684e989422e6f343ea6d04 (patch) | |
tree | cf07faebb9d48d9e78c4c274046295a152199d61 /pkgs/applications/graphics/xaos/default.nix | |
parent | 8aa63b34dafb4de1ee60ab345a809814344f7fb0 (diff) | |
download | nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar.gz nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar.bz2 nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar.lz nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar.xz nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.tar.zst nixpkgs-ddb9c3b7013d25293c684e989422e6f343ea6d04.zip |
xaos: reimplement using mkDerivation
Diffstat (limited to 'pkgs/applications/graphics/xaos/default.nix')
-rw-r--r-- | pkgs/applications/graphics/xaos/default.nix | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/pkgs/applications/graphics/xaos/default.nix b/pkgs/applications/graphics/xaos/default.nix index 7e01d3847d5..44c8313d9c3 100644 --- a/pkgs/applications/graphics/xaos/default.nix +++ b/pkgs/applications/graphics/xaos/default.nix @@ -1,34 +1,28 @@ -a @ { libXt, libX11, libXext, xextproto, xproto, gsl, aalib, zlib, intltool, gettext, perl, ... }: -let - fetchurl = a.fetchurl; +{ stdenv, fetchurl, aalib, gsl, libpng, libX11, xproto, libXext +, xextproto, libXt, zlib, gettext, intltool, perl }: + +stdenv.mkDerivation rec { + name = "xaos-${version}"; + version = "3.6"; - version = a.lib.attrByPath ["version"] "3.6" a; - buildInputs = with a; [ - aalib gsl libpng libX11 xproto libXext xextproto - libXt zlib gettext intltool perl - ]; -in -rec { src = fetchurl { - url = "mirror://sourceforge/xaos/xaos-${version}.tar.gz"; + url = "mirror://sourceforge/xaos/${name}.tar.gz"; sha256 = "15cd1cx1dyygw6g2nhjqq3bsfdj8sj8m4va9n75i0f3ryww3x7wq"; }; - inherit buildInputs; - configureFlags = []; - - /* doConfigure should be removed if not needed */ - phaseNames = ["preConfigure" "doConfigure" "doMakeInstall"]; + buildInputs = [ + aalib gsl libpng libX11 xproto libXext xextproto + libXt zlib gettext intltool perl + ]; - preConfigure = a.fullDepEntry ('' + preConfigure = '' sed -e s@/usr/@"$out/"@g -i configure $(find . -name 'Makefile*') mkdir -p $out/share/locale - '') ["doUnpack" "minInit" "defEnsureDir"]; + ''; - name = "xaos-" + version; meta = { homepage = http://xaos.sourceforge.net/; description = "Fractal viewer"; - license = a.stdenv.lib.licenses.gpl2Plus; + license = stdenv.lib.licenses.gpl2Plus; }; } |