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; [ ];