In preparation for the solution of b/108, we need to consistently use `depot.third_party` for packages that are only packed in the TVL depot and `pkgs` for things that come from nixpkgs. This commit cleans up a huge chunk of these uses in //third_party Change-Id: Ic382c0cdea7330a84d5f0b7d109c824ddceb94e7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2912 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { depot, pkgs, ... }:
 | |
| 
 | |
| let
 | |
|   inherit (pkgs) runCommand;
 | |
|   inherit (depot.nix.buildLisp) bundled;
 | |
| 
 | |
|   src = pkgs.fetchFromGitHub {
 | |
|     owner = "sabracrolleton";
 | |
|     repo = "uax-15";
 | |
|     rev = "a62fc7253663fac6467fc6b6bb69a73a0e8dfaa0";
 | |
|     sha256 = "028kc3yfi29qjxs2nyr7dbrr2rcrr8lwpvbxvrq3g8bcwamc4jz4";
 | |
|   };
 | |
| 
 | |
|   # src = ../../../uax-15;
 | |
| 
 | |
| in depot.nix.buildLisp.library {
 | |
|   name = "uax-15";
 | |
| 
 | |
|   deps = with depot.third_party.lisp; [
 | |
|     split-sequence
 | |
|     cl-ppcre
 | |
|     (bundled "uiop")
 | |
|     (bundled "asdf")
 | |
|   ];
 | |
| 
 | |
|   srcs = [
 | |
|     "${src}/uax-15.asd"
 | |
|     "${src}/src/package.lisp"
 | |
|     "${src}/src/utilities.lisp"
 | |
|     "${src}/src/trivial-utf-16.lisp"
 | |
|     (runCommand "precomputed-tables.lisp" {} ''
 | |
|       substitute ${src}/src/precomputed-tables.lisp precomputed-tables.lisp \
 | |
|         --replace "(asdf:system-source-directory (asdf:find-system 'uax-15 nil))" \
 | |
|                   '"${src}/"'
 | |
| 
 | |
|       sed -i precomputed-tables.lisp \
 | |
|         -e '17i(defvar *canonical-decomp-map*)' \
 | |
|         -e '17i(defvar *compatible-decomp-map*)' \
 | |
|         -e '17i(defvar *canonical-combining-class*)'
 | |
| 
 | |
|       cp precomputed-tables.lisp $out
 | |
|     '')
 | |
|     "${src}/src/normalize-backend.lisp"
 | |
|     "${src}/src/uax-15.lisp"
 | |
|   ];
 | |
| }
 |