Skip to content

Commit

Permalink
Add openbsd-ed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ypnose committed Oct 14, 2023
1 parent 3ab3273 commit 215ebc0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
build = pkg: cmd.callPackage ./${pkg} {};
build-static = pkg: cmd.pkgsStatic.callPackage ./${pkg} {};
in {
packages.x86_64-linux.openbsd-ed = build-static "openbsd-ed";
packages.x86_64-linux.s-nail = build "s-nail";
packages.x86_64-linux.wifycon = build "wifycon";
packages.x86_64-linux.yss = build "yss";
Expand Down
28 changes: 28 additions & 0 deletions openbsd-ed/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib
, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation (finalAttrs: {
pname = "openbsd-ed";
version = "0.5";

src = fetchFromGitHub {
owner = "Ypnose";
repo = "openbsd-ed";
rev = "7a3fc10df2d1250de3b732cc033d245fdcbe7f47";
sha256 = "sha256-eS17jgwSmpfRd1Rqk5x0bsHqVzuzVE5NFfKEoSPeXfM=";
};

dontConfigure = true;

installPhase = ''
install -Dm 0755 ed $out/bin/ed
'';

meta = {
homepage = "https://www.openbsd.org/";
description = "Line-oriented text editor";
platforms = lib.platforms.unix;
};
})

0 comments on commit 215ebc0

Please sign in to comment.