feat(pkgs): add pest-ide-tools and srtool-cli

This commit is contained in:
reo101 2023-07-13 14:25:57 +03:00
parent 9eb88e04c4
commit 30498fc42b
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
3 changed files with 74 additions and 0 deletions

View file

@ -8,6 +8,8 @@
advcpmv = pkgs.callPackage ./advcpmv { }; advcpmv = pkgs.callPackage ./advcpmv { };
fennel-language-server = pkgs.callPackage ./fennel-language-server { }; fennel-language-server = pkgs.callPackage ./fennel-language-server { };
parinfer-rust = pkgs.callPackage ./parinfer-rust { }; parinfer-rust = pkgs.callPackage ./parinfer-rust { };
pest-ide-tools = pkgs.callPackage ./pest-ide-tools { };
srtool-cli = pkgs.callPackage ./srtool-cli { };
swww = pkgs.callPackage ./swww { }; swww = pkgs.callPackage ./swww { };
vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { }; vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { };
win2xcur = pkgs.callPackage ./win2xcur { }; win2xcur = pkgs.callPackage ./win2xcur { };

View file

@ -0,0 +1,36 @@
{ lib, stdenv, darwin, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
rustPlatform.buildRustPackage rec {
pname = "pest-ide-tools";
version = "8de1ee91765b0257c2ccfbf48f6b5bd39158bc2c";
src = fetchFromGitHub {
owner = "pest-parser";
repo = pname;
rev = "${version}";
sha256 = "sha256-PSYbmFEYGGDPvHl9AjDSoedRx1Y7A5HT1gqPcGeVkv4=";
};
cargoSha256 = "sha256-wvMAo+XgnSfUb36nJWSAL3TAcnWzPOpaCdvJnpcyol0=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
SystemConfiguration
CoreServices
]);
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
doCheck = false;
meta = with lib; {
description = "IDE tools for writing pest grammars, using the Language Server Protocol for Visual Studio Code, Vim and other editors";
homepage = "https://github.com/pest-ide-tools/pest-parser";
license = licenses.mit;
maintainers = with maintainers; [ reo101 ];
};
}

View file

@ -0,0 +1,36 @@
{ lib, stdenv, darwin, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
rustPlatform.buildRustPackage rec {
pname = "srtool-cli";
version = "2e52c2c95d802d1a8a7da9b0f4c27a2b4ef5265a";
src = fetchFromGitHub {
owner = "chevdor";
repo = pname;
rev = "${version}";
sha256 = "sha256-/vOQL5ru+Hyyydab1N7zKdqV+yeYc5CsqpWn58Ni7Wk=";
};
cargoSha256 = "sha256-pxWuIxp4UjyIMiy1WWU40IRVElX2LRuw5VmiSAdcbMU=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
SystemConfiguration
CoreServices
]);
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
doCheck = false;
meta = with lib; {
description = "This cli utility helps you harness the srtool docker image witout breaking a sweat.";
homepage = "https://github.com/chevdor/srtool-cli";
license = licenses.mit;
maintainers = with maintainers; [ reo101 ];
};
}