summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fbterm/default.nix
blob: 7d6778bca88306b74c8b8e48eb3ee1a7b8c25a8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
a :  
let 
  fetchurl = a.fetchurl;
  
  version = a.lib.attrByPath ["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 = [];

  fixInc = a.fullDepEntry (''
    sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp
  '') ["doUnpack" "minInit"];

  /* doConfigure should be removed if not needed */
  phaseNames = ["fixInc" "doConfigure" "doMakeInstall"];
      
  name = "fbterm-" + version;
  meta = {
    description = "Framebuffer terminal emulator";
  };
}