mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +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.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib
|
||
, stdenv
|
||
, fetchurl
|
||
, readline
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "dterm";
|
||
version = "0.5";
|
||
|
||
src = fetchurl {
|
||
url = "http://www.knossos.net.nz/downloads/dterm-${version}.tgz";
|
||
hash = "sha256-lFM7558e7JZeWYhtXwCjXLZ1xdsdiUGfJTu3LxQKvds=";
|
||
};
|
||
|
||
buildInputs = [ readline ];
|
||
|
||
postPatch = ''
|
||
substituteInPlace Makefile \
|
||
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
||
'';
|
||
|
||
preInstall = "mkdir -p $out/bin";
|
||
|
||
installFlags = [ "BIN=$(out)/bin/" ];
|
||
|
||
meta = with lib; {
|
||
homepage = "http://www.knossos.net.nz/resources/free-software/dterm/";
|
||
description = "Simple terminal program";
|
||
longDescription = ''
|
||
dterm is a simple terminal emulator, which doesn’t actually emulate any
|
||
particular terminal. Mainly, it is designed for use with xterm and
|
||
friends, which already do a perfectly good emulation, and therefore don’t
|
||
need any special help; dterm simply provides a means by which keystrokes
|
||
are forwarded to the serial line, and data forwarded from the serial line
|
||
appears on the terminal.
|
||
'';
|
||
license = licenses.gpl2Only;
|
||
maintainers = with maintainers; [ auchter ];
|
||
platforms = platforms.unix;
|
||
mainProgram = "dterm";
|
||
};
|
||
}
|