nixpkgs/pkgs/by-name/bi/bicon/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

48 lines
1.1 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, pkg-config
, perl
, fribidi
, kbd
, xkbutils
}:
stdenv.mkDerivation rec {
pname = "bicon";
version = "unstable-2020-06-04";
src = fetchFromGitHub {
owner = "behdad";
repo = pname;
rev = "64ae10c94b94a573735a2c2b1502334b86d3b1f7";
sha256 = "0ixsf65j4dbdl2aazjc2j0hiagbp6svvfwfmyivha0i1k5yx12v1";
};
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";
})
];
buildInputs = [ fribidi kbd xkbutils perl ];
nativeBuildInputs = [ autoreconfHook pkg-config ];
preConfigure = ''
patchShebangs .
'';
meta = with lib; {
description = "Bidirectional console";
homepage = "https://github.com/behdad/bicon";
license = [ licenses.lgpl21 licenses.psfl licenses.bsd0 ];
maintainers = [ ];
platforms = platforms.linux;
};
}