diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 21:32:30 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-04 21:38:32 +0100 |
commit | 8403d1f9d7c806fcc1b7aa8f0e0954051b617193 (patch) | |
tree | db104d446d830d77728ddd755214d437181171e5 /pkgs/by-name/tr/tree-sitter-yts/flake.nix | |
parent | fix(modules/less/command.less): Improve keymappings (diff) | |
download | nixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.tar.gz nixos-config-8403d1f9d7c806fcc1b7aa8f0e0954051b617193.zip |
refactor(pkgs/tree-sitter-yts): Move to `yt`
Diffstat (limited to 'pkgs/by-name/tr/tree-sitter-yts/flake.nix')
-rw-r--r-- | pkgs/by-name/tr/tree-sitter-yts/flake.nix | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/pkgs/by-name/tr/tree-sitter-yts/flake.nix b/pkgs/by-name/tr/tree-sitter-yts/flake.nix deleted file mode 100644 index ca882578..00000000 --- a/pkgs/by-name/tr/tree-sitter-yts/flake.nix +++ /dev/null @@ -1,81 +0,0 @@ -{ - description = "tree-sitter-yts"; - - inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - - flake-utils.url = "github:numtide/flake-utils"; - - npmlock2nix = { - url = "github:nix-community/npmlock2nix"; - flake = false; - }; - - crane = { - url = "github:ipetkov/crane"; - inputs.nixpkgs.follows = "nixpkgs"; - }; - }; - - outputs = { - self, - nixpkgs, - flake-utils, - npmlock2nix, - crane, - }: (flake-utils.lib.eachDefaultSystem (system: let - pkgs = nixpkgs.legacyPackages.${system}; - - npmlock2nix' = pkgs.callPackage npmlock2nix {}; - craneLib = crane.mkLib pkgs; - in { - build = self.packages.${system}.tree-sitter-nix; - - rust-bindings = craneLib.buildPackage { - src = self; - }; - - # Requires xcode - node-bindings = npmlock2nix'.v2.build { - src = self; - inherit (self.devShells.${system}.default) nativeBuildInputs; - inherit (pkgs) nodejs; - - buildCommands = [ - "${pkgs.nodePackages.node-gyp}/bin/node-gyp configure" - "npm run build" - ]; - - installPhase = '' - touch $out - ''; - }; - - packages.tree-sitter-yts = (pkgs.callPackage ./grammar.nix {}) { - language = "yts"; - version = "1.0"; - src = self; - }; - - packages.default = self.packages.${system}.tree-sitter-yts; - devShells.default = pkgs.mkShell { - packages = [ - pkgs.nodejs - pkgs.python3 - - pkgs.tree-sitter - pkgs.editorconfig-checker - - pkgs.rustc - pkgs.cargo - - # Formatters - pkgs.treefmt - pkgs.nixpkgs-fmt - pkgs.nodePackages.prettier - pkgs.rustfmt - pkgs.clang-tools - ]; - }; - })); -} |