mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
571c71e6f7
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.
34 lines
857 B
Nix
34 lines
857 B
Nix
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.2.9";
|
|
pname = "yaft";
|
|
|
|
outputs = [ "out" "terminfo" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uobikiemukot";
|
|
repo = "yaft";
|
|
rev = "v${version}";
|
|
sha256 = "0l1ig8wm545kpn4l7186rymny83jkahnjim290wsl7hsszfq1ckd";
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" "MANPREFIX=$(out)/share/man" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/nix-support $terminfo/share
|
|
mv $out/share/terminfo $terminfo/share/
|
|
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/uobikiemukot/yaft";
|
|
description = "Yet another framebuffer terminal";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.matthiasbeyer ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|