Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
883 B
Nix
45 lines
883 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
makeWrapper,
|
|
libiconv,
|
|
ncurses,
|
|
perl,
|
|
fortune,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "gtypist";
|
|
version = "2.10.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gtypist/gtypist-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-ymGAVOkfHtXvBD/MQ1ALutcByVnDGETUaI/yKEmsJS0=";
|
|
};
|
|
|
|
CFLAGS = "-std=gnu99";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [
|
|
ncurses
|
|
perl
|
|
fortune
|
|
]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/typefortune" \
|
|
--prefix PATH : "${fortune}/bin" \
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.gnu.org/software/gtypist";
|
|
description = "Universal typing tutor";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ pSub ];
|
|
};
|
|
})
|