From a83d76a28743d3a380c4a80c3ee3e588dc6a3fc5 Mon Sep 17 00:00:00 2001 From: Astavie Date: Tue, 27 Jun 2023 15:47:34 +0200 Subject: [PATCH] ols: init at fd13619 --- pkgs/development/tools/ols/default.nix | 51 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/tools/ols/default.nix diff --git a/pkgs/development/tools/ols/default.nix b/pkgs/development/tools/ols/default.nix new file mode 100644 index 000000000000..c9b67d0aa6a6 --- /dev/null +++ b/pkgs/development/tools/ols/default.nix @@ -0,0 +1,51 @@ +{ stdenv, fetchFromGitHub, makeBinaryWrapper, odin, lib }: + +stdenv.mkDerivation { + pname = "ols"; + version = "nightly-2023-05-18"; + + src = fetchFromGitHub { + owner = "DanielGavin"; + repo = "ols"; + rev = "fd136199897d5e5c87f6f1fbfd076ed18e41d7b7"; + hash = "sha256-lRoDSc2bZSuXTam3Q5OOlSD6YAobCFKNRbtQ41Qx5EY="; + }; + + nativeBuildInputs = [ + makeBinaryWrapper + ]; + + buildInputs = [ + odin + ]; + + postPatch = '' + patchShebangs build.sh + ''; + + buildPhase = '' + runHook preBuild + + ./build.sh + + runHook postBuild + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin + cp ols $out/bin + wrapProgram $out/bin/ols --set-default ODIN_ROOT ${odin}/share + + runHook postInstall + ''; + + meta = with lib; { + description = "Language server for the Odin programming language"; + homepage = "https://github.com/DanielGavin/ols"; + license = licenses.mit; + maintainers = with maintainers; [ astavie ]; + platforms = odin.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0c3be6463d55..9aed001f5038 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27783,6 +27783,8 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Security; }; + ols = callPackage ../development/tools/ols { }; + openpam = callPackage ../development/libraries/openpam { }; openbsm = callPackage ../development/libraries/openbsm { };