anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / applications / editors / your-editor / default.nix
blob7ca6cd4b4fc5aae9d873c8b989aa11cf12dcf6c6
1 { lib, stdenv, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
4   pname = "your-editor";
5   version = "1601";
7   src = fetchFromGitHub {
8     owner = "your-editor";
9     repo = "yed";
10     rev = version;
11     sha256 = "sha256-pa9ibXyuWq7jRYsn3bGdqvLWbwQO2VYsP6Bk+BayQ8o=";
12   };
14   installPhase = ''
15     runHook preInstall
16     patchShebangs install.sh
17     ./install.sh -p $out
18     runHook postInstall
19   '';
21   meta = with lib; {
22     description = "Your-editor (yed) is a small and simple terminal editor core that is meant to be extended through a powerful plugin architecture";
23     homepage = "https://your-editor.org/";
24     changelog = "https://github.com/your-editor/yed/blob/${version}/CHANGELOG.md";
25     license = with licenses; [ mit ];
26     platforms = platforms.unix;
27     maintainers = with maintainers; [ uniquepointer ];
28     mainProgram = "yed";
29   };