vault backup: 2024-07-11 22:21:11
This commit is contained in:
@@ -10,12 +10,22 @@ Command to build nix packages, either locally sourced or from third parties (lik
|
||||
|
||||
#### Local
|
||||
|
||||
Set something to build inside your Nix flake (`flake.nix`) then run `nix build`
|
||||
Set something to build inside your Nix flake (`flake.nix`) then run `nix build`.
|
||||
|
||||
Here's an example you can put in Nix flake:
|
||||
|
||||
```nix
|
||||
|
||||
```
|
||||
packages.default = pkgs.rustPlatform.buildRustPackage {
|
||||
name = "zero-to-nix-rust";
|
||||
src = ./.;
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
};
|
||||
};
|
||||
```
|
||||
```
|
||||
|
||||
#### Third party/Remote
|
||||
|
||||
You can either grab something from GitHub (using the `github:user/repo*#optional_pkg`) or a URL (using the `https://scm.wyattjmiller.com/wymiller/cool-repo*#pkg)
|
||||
You can either grab something from GitHub (using the `github:user/repo*#optional_pkg`) or a URL (using the `https://scm.wyattjmiller.com/wymiller/cool-repo*#pkg`)
|
Reference in New Issue
Block a user