feat(pkgs): add three rust packages
`vim-fmi` -> `vim-fmi-cli` `fennel-language-server` `parinfer-rust`
This commit is contained in:
parent
d323092582
commit
cf6af515e0
4 changed files with 68 additions and 5 deletions
|
@ -5,6 +5,8 @@
|
||||||
, ...
|
, ...
|
||||||
}: {
|
}: {
|
||||||
# example = pkgs.callPackage ./example { };
|
# example = pkgs.callPackage ./example { };
|
||||||
|
fennel-language-server = pkgs.callPackage ./fennel-language-server { };
|
||||||
|
parinfer-rust = pkgs.callPackage ./parinfer-rust { };
|
||||||
swww = pkgs.callPackage ./swww { };
|
swww = pkgs.callPackage ./swww { };
|
||||||
vim-fmi = pkgs.callPackage ./vim-fmi { };
|
vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { };
|
||||||
}
|
}
|
||||||
|
|
28
pkgs/fennel-language-server/default.nix
Normal file
28
pkgs/fennel-language-server/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "fennel-language-server";
|
||||||
|
version = "d0c65db2ef43fd56390db14c422983040b41dd9c";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rydesun";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-KU2MPmgHOS/WesBzCmEoHHXHoDWCyqjy49tmMmZw5BQ=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-6q1VXgj0f8jTrVxhgYixow0WxJzx+yKHQPqOGmzTzLo=";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ ];
|
||||||
|
|
||||||
|
buildInputs = [ ];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Fennel language server protocol (LSP) support.";
|
||||||
|
homepage = "https://github.com/rydesun/fennel-language-server";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ reo101 ];
|
||||||
|
};
|
||||||
|
}
|
33
pkgs/parinfer-rust/default.nix
Normal file
33
pkgs/parinfer-rust/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "parinfer-rust";
|
||||||
|
version = "4d4f4c6c0d3b44c8443f3102bfadfb67dfb385f7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "eraserhd";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = lib.fakeSha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = lib.fakeSha256;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ ];
|
||||||
|
|
||||||
|
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
|
||||||
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A Rust port of parinfer.";
|
||||||
|
homepage = "https://github.com/eraserhd/parinfer-rust";
|
||||||
|
license = licenses.isc;
|
||||||
|
maintainers = with maintainers; [ reo101 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "vim-fmi-cli";
|
pname = "vim-fmi-cli";
|
||||||
version = "8a405efc988473a6e9f2ab3016ad1535692efbae";
|
version = "v0.1.14";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "AndrewRadev";
|
owner = "AndrewRadev";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-V+R+B9UR9qHeXaqeEaAD2ngVOZV07LoB36ilVhTpdog=";
|
sha256 = "sha256-7Ek86uVa9fGaXwb8ZOzob2S27V+KYhogAFVLH4g20rU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-FRU1JieyxJ2joENueKJqGW1jbiMWLbOL03gqXL9k73o=";
|
cargoSha256 = "sha256-E2MSfypho15dYXdh2h5P/pwxxBJ8iQYVgEliUcrxugI=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = " The command-line tool for https://www.vim-fmi.bg";
|
description = "The command-line tool for https://www.vim-fmi.bg";
|
||||||
homepage = "https://github.com/AndrewRadev/vim-fmi-cli";
|
homepage = "https://github.com/AndrewRadev/vim-fmi-cli";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ reo101 ];
|
maintainers = with maintainers; [ reo101 ];
|
Loading…
Reference in a new issue