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
35 lines
752 B
Nix
35 lines
752 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "oed";
|
|
version = "7.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ibara";
|
|
repo = "oed";
|
|
rev = "oed-${version}";
|
|
hash = "sha256-bbV89YhrmL7tOgKly5OfQDRz4QE0UzZrVsmoXiJ7ZZw=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|