Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 34 lines 839 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "your-editor"; 9 version = "1601"; 10 11 src = fetchFromGitHub { 12 owner = "your-editor"; 13 repo = "yed"; 14 rev = version; 15 sha256 = "sha256-pa9ibXyuWq7jRYsn3bGdqvLWbwQO2VYsP6Bk+BayQ8o="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 patchShebangs install.sh 21 ./install.sh -p $out 22 runHook postInstall 23 ''; 24 25 meta = { 26 description = "Small and simple terminal editor core that is meant to be extended through a powerful plugin architecture"; 27 homepage = "https://your-editor.org/"; 28 changelog = "https://github.com/your-editor/yed/blob/${version}/CHANGELOG.md"; 29 license = with lib.licenses; [ mit ]; 30 platforms = lib.platforms.unix; 31 maintainers = with lib.maintainers; [ uniquepointer ]; 32 mainProgram = "yed"; 33 }; 34}