2021-10-25 22:46:23 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2021-10-25 22:31:07 +01:00
|
|
|
|
2021-10-25 22:46:23 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-10-25 22:31:07 +01:00
|
|
|
pname = "your-editor";
|
2022-02-13 13:15:59 +00:00
|
|
|
version = "1400";
|
2021-10-25 22:31:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-08 17:10:24 +00:00
|
|
|
owner = "your-editor";
|
2021-10-25 22:31:07 +01:00
|
|
|
repo = "yed";
|
2021-12-08 17:10:24 +00:00
|
|
|
rev = version;
|
2022-02-13 13:15:59 +00:00
|
|
|
sha256 = "sha256-qF+fMFHfY1fdWPAFEoCxcKHB++sFNwOaHeaMv+6gakg=";
|
2021-10-25 22:31:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-25 22:46:23 +01:00
|
|
|
runHook preInstall
|
|
|
|
patchShebangs install.sh
|
2021-10-25 22:31:07 +01:00
|
|
|
./install.sh -p $out
|
2021-10-25 22:46:23 +01:00
|
|
|
runHook postInstall
|
2021-10-25 22:31:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-10-26 00:28:12 +01:00
|
|
|
description = "Your-editor (yed) is a small and simple terminal editor core that is meant to be extended through a powerful plugin architecture";
|
2021-10-25 22:31:07 +01:00
|
|
|
homepage = "https://your-editor.org/";
|
2021-12-09 01:55:14 +00:00
|
|
|
changelog = "https://github.com/your-editor/yed/blob/${version}/CHANGELOG.md";
|
2021-10-25 22:31:07 +01:00
|
|
|
license = with licenses; [ mit ];
|
2021-12-08 17:10:24 +00:00
|
|
|
platforms = platforms.unix;
|
2021-10-25 22:46:23 +01:00
|
|
|
maintainers = with maintainers; [ uniquepointer ];
|
|
|
|
mainProgram = "yed";
|
2021-10-25 22:31:07 +01:00
|
|
|
};
|
|
|
|
}
|