2021-06-22 00:34:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "oed";
|
2022-08-29 23:25:54 +00:00
|
|
|
version = "7.1";
|
2021-06-22 00:34:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ibara";
|
|
|
|
repo = "oed";
|
|
|
|
rev = "oed-${version}";
|
2022-08-29 23:25:54 +00:00
|
|
|
hash = "sha256-ySfw8Xo/dCBd3K3dxWsdPz8gQ+KeXyReIlUo4q5SFCc=";
|
2021-06-22 00:34:36 +00:00
|
|
|
};
|
|
|
|
|
2022-04-21 15:59:58 +00:00
|
|
|
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
|
|
|
substituteInPlace configure --replace "./conftest" "echo"
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -Dt $out/bin ed
|
|
|
|
install -m644 -Dt $out/share/man/man1 ed.1
|
|
|
|
'';
|
|
|
|
|
2021-06-22 00:34:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Portable ed editor from OpenBSD";
|
2022-05-05 00:46:39 +00:00
|
|
|
homepage = "https://github.com/ibara/oed";
|
2021-06-22 00:34:36 +00:00
|
|
|
license = with licenses; [ bsd2 ];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "ed";
|
2021-06-22 00:34:36 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|