2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2022-05-18 14:49:53 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, perl
|
|
|
|
, fribidi
|
|
|
|
, kbd
|
|
|
|
, xkbutils
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bicon";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "unstable-2020-06-04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "behdad";
|
|
|
|
repo = pname;
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "64ae10c94b94a573735a2c2b1502334b86d3b1f7";
|
|
|
|
sha256 = "0ixsf65j4dbdl2aazjc2j0hiagbp6svvfwfmyivha0i1k5yx12v1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build on clang-13. Pull the change pending upstream
|
|
|
|
# inclusion: https://github.com/behdad/bicon/pull/29
|
|
|
|
(fetchpatch {
|
|
|
|
name = "clang.patch";
|
|
|
|
url = "https://github.com/behdad/bicon/commit/20f5a79571f222f96e07d7c0c5e76e2c9ff1c59a.patch";
|
|
|
|
sha256 = "0l1dm7w52k57nv3lvz5pkbwp021mlsk3csyalxi90np1lx5sqbd1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ fribidi kbd xkbutils perl ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Bidirectional console";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/behdad/bicon";
|
|
|
|
license = [ licenses.lgpl21 licenses.psfl licenses.bsd0 ];
|
2022-02-21 08:47:16 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|