diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-11 12:20:15 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-11 12:20:15 -0700 |
commit | 34809448bee4d8116ed6ad1193ea80dae59d9210 (patch) | |
tree | 29ff4bc095004ca7b3f7dde366e9de25123f5857 | |
parent | add drone configuration (diff) | |
download | world-34809448bee4d8116ed6ad1193ea80dae59d9210.tar.gz |
nix: add more content
-rw-r--r-- | users/fcuny/notes/content/notes/working-with-nix.org | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/users/fcuny/notes/content/notes/working-with-nix.org b/users/fcuny/notes/content/notes/working-with-nix.org index b7be859..105d025 100644 --- a/users/fcuny/notes/content/notes/working-with-nix.org +++ b/users/fcuny/notes/content/notes/working-with-nix.org @@ -1,4 +1,5 @@ #+TITLE: Working with nix +#+DATE: <2022-05-10 Tue> #+TAGS[]: linux nix * the =nix develop= command @@ -20,3 +21,6 @@ In the repository, running =nix develop --build= will build the binary *using th For Go, there's the =buildGoModule=. Looking at the [[https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/go-modules/generic/default.nix][source]] we can see there's a definition of what will be done for each phases. As a result, we don't have to define them ourselves. If we run =nix build= in the repository, it will run the default [[https://github.com/NixOS/nixpkgs/blob/fb7287e6d2d2684520f756639846ee07f6287caa/pkgs/development/go-modules/generic/default.nix#L171][build phase]]. +* =buildInputs= or =nativeBuildInputs= ++ =nativeBuildInputs= is intended for architecture-dependent build-time-only dependencies ++ =buildInputs= is intended for architecture-independent build-time-only dependencies |