diff --git a/pkgs/default.nix b/pkgs/default.nix index f9d443a..aed2d99 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -5,6 +5,8 @@ , ... }: { # example = pkgs.callPackage ./example { }; + fennel-language-server = pkgs.callPackage ./fennel-language-server { }; + parinfer-rust = pkgs.callPackage ./parinfer-rust { }; swww = pkgs.callPackage ./swww { }; - vim-fmi = pkgs.callPackage ./vim-fmi { }; + vim-fmi-cli = pkgs.callPackage ./vim-fmi-cli { }; } diff --git a/pkgs/fennel-language-server/default.nix b/pkgs/fennel-language-server/default.nix new file mode 100644 index 0000000..547c70b --- /dev/null +++ b/pkgs/fennel-language-server/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/parinfer-rust/default.nix b/pkgs/parinfer-rust/default.nix new file mode 100644 index 0000000..5949ddb --- /dev/null +++ b/pkgs/parinfer-rust/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/vim-fmi/default.nix b/pkgs/vim-fmi-cli/default.nix similarity index 69% rename from pkgs/vim-fmi/default.nix rename to pkgs/vim-fmi-cli/default.nix index ed262f1..80baf9f 100644 --- a/pkgs/vim-fmi/default.nix +++ b/pkgs/vim-fmi-cli/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "vim-fmi-cli"; - version = "8a405efc988473a6e9f2ab3016ad1535692efbae"; + version = "v0.1.14"; src = fetchFromGitHub { owner = "AndrewRadev"; repo = pname; rev = version; - sha256 = "sha256-V+R+B9UR9qHeXaqeEaAD2ngVOZV07LoB36ilVhTpdog="; + sha256 = "sha256-7Ek86uVa9fGaXwb8ZOzob2S27V+KYhogAFVLH4g20rU="; }; - cargoSha256 = "sha256-FRU1JieyxJ2joENueKJqGW1jbiMWLbOL03gqXL9k73o="; + cargoSha256 = "sha256-E2MSfypho15dYXdh2h5P/pwxxBJ8iQYVgEliUcrxugI="; nativeBuildInputs = [ pkg-config @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage rec { doCheck = false; 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"; license = licenses.mit; maintainers = with maintainers; [ reo101 ];