fbterm: refactor

+10 -18
+10 -18
pkgs/os-specific/linux/fbterm/default.nix
··· 1 1 { stdenv, lib, fetchurl, gpm, freetype, fontconfig, pkg-config, ncurses, libx86 }: 2 - let 3 - s = # Generated upstream information 4 - { 5 - version = "1.7.0"; 6 - pname = "fbterm"; 7 - hash = "0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj"; 8 - url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/fbterm/fbterm-1.7.0.tar.gz"; 9 - sha256 = "0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj"; 10 - }; 11 - buildInputs = [ gpm freetype fontconfig ncurses ] 12 - ++ lib.optional stdenv.hostPlatform.isx86 libx86; 13 - in 14 - stdenv.mkDerivation { 15 - inherit (s) pname version; 2 + 3 + stdenv.mkDerivation rec { 4 + version = "1.7.0"; 5 + pname = "fbterm"; 6 + 16 7 src = fetchurl { 17 - inherit (s) url sha256; 8 + url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/fbterm/fbterm-${version}.tar.gz"; 9 + sha256 = "0pciv5by989vzvjxsv1jsv4bdp4m8j0nfbl29jm5fwi12w4603vj"; 18 10 }; 19 11 20 12 nativeBuildInputs = [ pkg-config ncurses ]; 21 - inherit buildInputs; 13 + buildInputs = [ gpm freetype fontconfig ncurses ] 14 + ++ lib.optional stdenv.hostPlatform.isx86 libx86; 22 15 23 16 preConfigure = '' 24 17 sed -e '/ifdef SYS_signalfd/atypedef long long loff_t;' -i src/fbterm.cpp ··· 51 44 ]; 52 45 53 46 meta = with lib; { 54 - inherit (s) version; 55 47 description = "Framebuffer terminal emulator"; 56 48 homepage = "https://code.google.com/archive/p/fbterm/"; 57 - maintainers = [ maintainers.raskin ]; 49 + maintainers = with maintainers; [ raskin ]; 58 50 license = licenses.gpl2; 59 51 platforms = platforms.linux; 60 52 };