ols: init at fd13619
This commit is contained in:
parent
42e931d6ce
commit
a83d76a287
2 changed files with 53 additions and 0 deletions
51
pkgs/development/tools/ols/default.nix
Normal file
51
pkgs/development/tools/ols/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue