nixpkgs/pkgs/applications/editors/edit/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
878 B
Nix
Raw Normal View History

2023-07-22 01:03:56 +00:00
{ lib
, stdenv
, fetchgit
, cwebbin
, libX11
, libXft
, ncurses
, pkg-config
, unzip
}:
2016-04-25 22:26:38 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
2023-07-22 01:03:56 +00:00
pname = "edit";
version = "unstable-2021-04-05";
2016-04-25 22:26:38 +00:00
src = fetchgit {
url = "git://c9x.me/ed.git";
2023-07-22 01:03:56 +00:00
rev = "bc24e3d4f716b0afacef559f952c40f0be5a1c58";
hash = "sha256-DzQ+3B96+UzQqL3lhn0DfYmZy2LOANtibj1e1iVR+Jo=";
2016-04-25 22:26:38 +00:00
};
nativeBuildInputs = [
cwebbin
2023-07-22 01:03:56 +00:00
pkg-config
unzip
];
2016-04-25 22:26:38 +00:00
buildInputs = [
libX11
libXft
2023-07-22 01:03:56 +00:00
ncurses
2016-04-25 22:26:38 +00:00
];
preBuild = ''
2023-07-22 01:03:56 +00:00
ctangle vicmd.w
2016-04-25 22:26:38 +00:00
'';
installPhase = ''
2023-07-22 01:03:56 +00:00
runHook preInstall
install -Dm755 obj/edit -t $out/bin
2023-07-22 01:03:56 +00:00
runHook postInstall
2016-04-25 22:26:38 +00:00
'';
2023-07-22 01:03:56 +00:00
meta = {
2016-04-25 22:26:38 +00:00
description = "A relaxing mix of Vi and ACME";
homepage = "https://c9x.me/edit";
2023-07-22 01:03:56 +00:00
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ AndersonTorres vrthra ];
platforms = lib.platforms.unix;
2016-04-25 22:26:38 +00:00
};
}