From e66080438b663e311ed1ff4e000e5c03c5b3d2a6 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Mon, 8 Dec 2008 12:44:42 +0000 Subject: [PATCH] Added FBTerm - framebuffer terminal emulator svn path=/nixpkgs/trunk/; revision=13596 --- pkgs/os-specific/linux/fbterm/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ pkgs/top-level/template-composing-builder.nix | 3 +-- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 pkgs/os-specific/linux/fbterm/default.nix diff --git a/pkgs/os-specific/linux/fbterm/default.nix b/pkgs/os-specific/linux/fbterm/default.nix new file mode 100644 index 000000000000..189272b7d9b3 --- /dev/null +++ b/pkgs/os-specific/linux/fbterm/default.nix @@ -0,0 +1,26 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.getAttr ["version"] "1.2" a; + buildInputs = with a; [ + gpm fontconfig freetype pkgconfig + ]; +in +rec { + src = fetchurl { + url = "http://fbterm.googlecode.com/files/fbterm-${version}.tar.gz"; + sha256 = "0q4axmnpwlpjlpaj19iw7nyxkqsvwq767szdkzsgancq99afwqyd"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + name = "fbterm-" + version; + meta = { + description = "Framebuffer terminal emulator"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ec4391d83d3c..beaa73d43fc4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5926,6 +5926,10 @@ let inherit fetchurl stdenv gettext; }; + fbterm = builderDefsPackage (import ../os-specific/linux/fbterm) { + inherit fontconfig gpm freetype pkgconfig; + }; + fuse = import ../os-specific/linux/fuse { inherit fetchurl stdenv utillinux; }; diff --git a/pkgs/top-level/template-composing-builder.nix b/pkgs/top-level/template-composing-builder.nix index b7b3db268b5d..0efb347d821c 100644 --- a/pkgs/top-level/template-composing-builder.nix +++ b/pkgs/top-level/template-composing-builder.nix @@ -1,9 +1,8 @@ a : let - lib = a.lib; fetchurl = a.fetchurl; - version = lib.getAttr ["version"] "" a; + version = a.lib.getAttr ["version"] "" a; buildInputs = with a; [ ];