diff options
author | Robert Helgesson <robert@rycee.net> | 2015-12-30 11:58:06 +0100 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2015-12-30 21:15:15 +0100 |
commit | 6ca0480de6a6ad442455157d90605c4c2a4d2c3a (patch) | |
tree | bf73b779e77c113ca6fdfe21a197d537120cf3ae /pkgs/development/libraries/cgui | |
parent | 7ce3f6f976d4362009f41c69ba634c08a2775db1 (diff) | |
download | nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar.gz nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar.bz2 nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar.lz nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar.xz nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.tar.zst nixpkgs-6ca0480de6a6ad442455157d90605c4c2a4d2c3a.zip |
cgui: use stdenv
This replaces use of `builderDefsPackage`.
Diffstat (limited to 'pkgs/development/libraries/cgui')
-rw-r--r-- | pkgs/development/libraries/cgui/default.nix | 65 |
1 files changed, 17 insertions, 48 deletions
diff --git a/pkgs/development/libraries/cgui/default.nix b/pkgs/development/libraries/cgui/default.nix index 6bd3dd41de7..0f117862236 100644 --- a/pkgs/development/libraries/cgui/default.nix +++ b/pkgs/development/libraries/cgui/default.nix @@ -1,57 +1,26 @@ -x@{builderDefsPackage - , texinfo, allegro, perl - , ...}: -builderDefsPackage -(a : -let - helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ - []; +{ stdenv, fetchurl, texinfo, allegro, perl }: - buildInputs = map (n: builtins.getAttr n x) - (builtins.attrNames (builtins.removeAttrs x helperArgNames)); - sourceInfo = rec { - baseName="cgui"; - version="2.0.3"; - name="${baseName}-${version}"; - project="${baseName}"; - url="mirror://sourceforge/project/${project}/${version}/${name}.tar.gz"; - hash="00kk4xaw68m44awy8zq4g5plx372swwccvzshn68a0a8f3f2wi4x"; - }; -in -rec { - src = a.fetchurl { - url = sourceInfo.url; - sha256 = sourceInfo.hash; - }; +stdenv.mkDerivation rec { + name = "cgui-${version}"; + version="2.0.3"; - inherit (sourceInfo) name version; - inherit buildInputs; + src = fetchurl { + url = "mirror://sourceforge/project/cgui/${version}/${name}.tar.gz"; + sha256 = "00kk4xaw68m44awy8zq4g5plx372swwccvzshn68a0a8f3f2wi4x"; + }; - /* doConfigure should be removed if not needed */ - phaseNames = ["genMakefile" "doMakeInstall"]; + buildInputs = [ texinfo allegro perl ]; - genMakefile = a.fullDepEntry ('' + configurePhase = '' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -fPIC" sh fix.sh unix - '') ["minInit" "doUnpack" "addInputs"]; - - makeFlags = [ - "SYSTEM_DIR=$out" - ]; + ''; - meta = { + makeFlags = [ "SYSTEM_DIR=$(out)" ]; + + meta = with stdenv.lib; { description = "A multiplatform basic GUI library"; - maintainers = with a.lib.maintainers; - [ - raskin - ]; - platforms = with a.lib.platforms; - linux; - }; - passthru = { - updateInfo = { - downloadPage = "http://sourceforge.net/projects/cgui/files/"; - }; + maintainers = [ maintainers.raskin ]; + platforms = platforms.linux; }; -}) x - +} |