ols: refactor
This commit is contained in:
parent
70e50907c0
commit
ee54d80c9b
@ -1,4 +1,11 @@
|
||||
{ stdenv, fetchFromGitHub, makeBinaryWrapper, unstableGitUpdater, odin, lib }:
|
||||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
makeBinaryWrapper,
|
||||
odin,
|
||||
stdenv,
|
||||
unstableGitUpdater,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ols";
|
||||
@ -11,22 +18,14 @@ stdenv.mkDerivation {
|
||||
hash = "sha256-zvojGIxMGawddWx5vnBQMTybz+jL9LXfaShbof7wwq0=";
|
||||
};
|
||||
|
||||
passthru.updateScript = unstableGitUpdater {
|
||||
hardcodeZeroVersion = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeBinaryWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
odin
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build.sh
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
|
||||
buildInputs = [ odin ];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
@ -44,12 +43,17 @@ stdenv.mkDerivation {
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
passthru.updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
|
||||
|
||||
meta = {
|
||||
inherit (odin.meta) platforms;
|
||||
description = "Language server for the Odin programming language";
|
||||
mainProgram = "ols";
|
||||
homepage = "https://github.com/DanielGavin/ols";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ astavie znaniye ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
astavie
|
||||
znaniye
|
||||
];
|
||||
mainProgram = "ols";
|
||||
};
|
||||
}
|
@ -27651,8 +27651,6 @@ 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 New Issue
Block a user