nixpkgs-fmt
This commit is contained in:
parent
70854a5310
commit
e850799428
8 changed files with 16 additions and 15 deletions
|
@ -6,7 +6,7 @@
|
|||
nix = nix;
|
||||
extraContents = [ cachix ];
|
||||
}).overrideAttrs (prev: {
|
||||
meta = (prev.meta or {}) // {
|
||||
meta = (prev.meta or { }) // {
|
||||
description = "Nix and Cachix image";
|
||||
};
|
||||
})
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
, mkUserEnvironment
|
||||
}:
|
||||
let
|
||||
channel = builtins.getEnv("NIXPKGS_CHANNEL");
|
||||
channel = builtins.getEnv ("NIXPKGS_CHANNEL");
|
||||
|
||||
# generate a user profile for the image
|
||||
profile = mkUserEnvironment {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
, nix
|
||||
, openssh
|
||||
, xz
|
||||
, extraContents ? []
|
||||
, extraContents ? [ ]
|
||||
}:
|
||||
let
|
||||
image = dockerTools.buildImageWithNixDb {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
_:
|
||||
throw ''
|
||||
This container doesn't include nixpkgs.
|
||||
This container doesn't include nixpkgs.
|
||||
|
||||
The best way to work around that is to pin your dependencies. See
|
||||
https://nix.dev/tutorials/towards-reproducibility-pinning-nixpkgs.html
|
||||
The best way to work around that is to pin your dependencies. See
|
||||
https://nix.dev/tutorials/towards-reproducibility-pinning-nixpkgs.html
|
||||
|
||||
Or if you must, override the NIX_PATH environment variable with eg:
|
||||
"NIX_PATH=nixpkgs=channel:nixos-unstable"
|
||||
Or if you must, override the NIX_PATH environment variable with eg:
|
||||
"NIX_PATH=nixpkgs=channel:nixos-unstable"
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue