Create third_party
Create a third_party subdirectory and a third_party/lisp. This directory layout resembles and is inspired by the layout of Google's mono-repo, Google3. @tazjin borrowed this idea from Google and I'm borrowing the idea from him.
This commit is contained in:
		
							parent
							
								
									393bd0a5c7
								
							
						
					
					
						commit
						e76843d337
					
				
					 5 changed files with 32 additions and 35 deletions
				
			
		| 
						 | 
					@ -1,15 +0,0 @@
 | 
				
			||||||
{ tpkgs ? (import (builtins.fetchGit "https://git.tazj.in/") {}), ... }:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
let
 | 
					 | 
				
			||||||
  src = builtins.fetchGit {
 | 
					 | 
				
			||||||
    url = "https://github.com/fukamachi/prove.git";
 | 
					 | 
				
			||||||
    rev = "5d71f02795b89e36f34e8c7d50e69b67ec6ca2de";
 | 
					 | 
				
			||||||
  };
 | 
					 | 
				
			||||||
in tpkgs.nix.buildLisp.library {
 | 
					 | 
				
			||||||
  name = "prove-asdf";
 | 
					 | 
				
			||||||
  deps = [];
 | 
					 | 
				
			||||||
  srcs = [
 | 
					 | 
				
			||||||
    "${src}/src/output.lisp"
 | 
					 | 
				
			||||||
    "${src}/src/asdf.lisp"
 | 
					 | 
				
			||||||
  ];
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,11 @@
 | 
				
			||||||
{ tpkgs ? (import (builtins.fetchGit "https://git.tazj.in/") {}), ... }:
 | 
					{ depot ? import <depot> {}, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  src = builtins.fetchGit {
 | 
					  src = builtins.fetchGit {
 | 
				
			||||||
    url = "https://github.com/tokenrove/anaphora.git";
 | 
					    url = "https://github.com/tokenrove/anaphora.git";
 | 
				
			||||||
    rev = "aeace4c68cf55098a67112750b28f8f2dc6d0e30";
 | 
					    rev = "aeace4c68cf55098a67112750b28f8f2dc6d0e30";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
in tpkgs.nix.buildLisp.library {
 | 
					in depot.nix.buildLisp.library {
 | 
				
			||||||
  name = "anaphora";
 | 
					  name = "anaphora";
 | 
				
			||||||
  deps = [];
 | 
					  deps = [];
 | 
				
			||||||
  srcs = [
 | 
					  srcs = [
 | 
				
			||||||
| 
						 | 
					@ -1,15 +1,19 @@
 | 
				
			||||||
{ tpkgs ? (import (builtins.fetchGit "https://git.tazj.in/") {}), ... }:
 | 
					{
 | 
				
			||||||
 | 
					  depot ? import <depot> {},
 | 
				
			||||||
 | 
					  universe ? import <universe> {},
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  src = builtins.fetchGit {
 | 
					  src = builtins.fetchGit {
 | 
				
			||||||
    url = "https://github.com/tpapp/cl-colors.git";
 | 
					    url = "https://github.com/tpapp/cl-colors.git";
 | 
				
			||||||
    rev = "827410584553f5c717eec6182343b7605f707f75";
 | 
					    rev = "827410584553f5c717eec6182343b7605f707f75";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
in tpkgs.nix.buildLisp.library {
 | 
					in depot.nix.buildLisp.library {
 | 
				
			||||||
  name = "cl-colors";
 | 
					  name = "cl-colors";
 | 
				
			||||||
  deps = with tpkgs.third_party.lisp; [
 | 
					  deps = [
 | 
				
			||||||
    alexandria
 | 
					    depot.third_party.lisp.alexandria
 | 
				
			||||||
    (import ./let-plus.nix {})
 | 
					    universe.third_party.lisp.let-plus
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  srcs = [
 | 
					  srcs = [
 | 
				
			||||||
    "${src}/package.lisp"
 | 
					    "${src}/package.lisp"
 | 
				
			||||||
| 
						 | 
					@ -1,15 +1,19 @@
 | 
				
			||||||
{ tpkgs ? (import (builtins.fetchGit "https://git.tazj.in/") {}), ... }:
 | 
					{
 | 
				
			||||||
 | 
					  depot ? import <depot> {},
 | 
				
			||||||
 | 
					  universe ? import <universe> {},
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  src = builtins.fetchGit {
 | 
					  src = builtins.fetchGit {
 | 
				
			||||||
    url = "https://github.com/tpapp/let-plus.git";
 | 
					    url = "https://github.com/tpapp/let-plus.git";
 | 
				
			||||||
    rev = "7cf18b29ed0fe9c667a9a6a101b08ab9661a59e9";
 | 
					    rev = "7cf18b29ed0fe9c667a9a6a101b08ab9661a59e9";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
in tpkgs.nix.buildLisp.library {
 | 
					in depot.nix.buildLisp.library {
 | 
				
			||||||
  name = "let-plus";
 | 
					  name = "let-plus";
 | 
				
			||||||
  deps = with tpkgs.third_party.lisp; [
 | 
					  deps = [
 | 
				
			||||||
    alexandria
 | 
					    depot.third_party.lisp.alexandria
 | 
				
			||||||
    (import ./anaphora.nix {})
 | 
					    universe.third_party.lisp.anaphora
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  srcs = [
 | 
					  srcs = [
 | 
				
			||||||
    "${src}/package.lisp"
 | 
					    "${src}/package.lisp"
 | 
				
			||||||
| 
						 | 
					@ -1,18 +1,22 @@
 | 
				
			||||||
{ tpkgs ? (import (builtins.fetchGit "https://git.tazj.in/") {}), ... }:
 | 
					{
 | 
				
			||||||
 | 
					  depot ? import <depot> {},
 | 
				
			||||||
 | 
					  universe? import <universe> {},
 | 
				
			||||||
 | 
					  ...
 | 
				
			||||||
 | 
					}:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
let
 | 
					let
 | 
				
			||||||
  src = builtins.fetchGit {
 | 
					  src = builtins.fetchGit {
 | 
				
			||||||
    url = "https://github.com/fukamachi/prove.git";
 | 
					    url = "https://github.com/fukamachi/prove.git";
 | 
				
			||||||
    rev = "5d71f02795b89e36f34e8c7d50e69b67ec6ca2de";
 | 
					    rev = "5d71f02795b89e36f34e8c7d50e69b67ec6ca2de";
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
in tpkgs.nix.buildLisp.library {
 | 
					in depot.nix.buildLisp.library {
 | 
				
			||||||
  name = "prove";
 | 
					  name = "prove";
 | 
				
			||||||
  deps = with tpkgs.third_party.lisp; [
 | 
					  deps = [
 | 
				
			||||||
    cl-ppcre
 | 
					    depot.third_party.lisp.cl-ppcre
 | 
				
			||||||
    cl-ansi-text
 | 
					    depot.third_party.lisp.cl-ansi-text
 | 
				
			||||||
    (import ./cl-colors.nix {})
 | 
					    depot.third_party.lisp.alexandria
 | 
				
			||||||
    alexandria
 | 
					    depot.third_party.lisp.uiop
 | 
				
			||||||
    uiop
 | 
					    universe.third_party.lisp.cl-colors
 | 
				
			||||||
  ];
 | 
					  ];
 | 
				
			||||||
  srcs = [
 | 
					  srcs = [
 | 
				
			||||||
    "${src}/src/asdf.lisp"
 | 
					    "${src}/src/asdf.lisp"
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue