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

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

34 lines
747 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "oed";
2024-02-05 04:55:59 +00:00
version = "7.4";
src = fetchFromGitHub {
owner = "ibara";
repo = "oed";
rev = "oed-${version}";
2024-02-05 04:55:59 +00:00
hash = "sha256-bbV89YhrmL7tOgKly5OfQDRz4QE0UzZrVsmoXiJ7ZZw=";
};
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
'';
meta = with lib; {
description = "Portable ed editor from OpenBSD";
homepage = "https://github.com/ibara/oed";
license = with licenses; [ bsd2 ];
mainProgram = "ed";
platforms = platforms.unix;
};
}