Skip to content

Commit e291696

Browse files
tazjinhka
authored andcommitted
style: format entire depot with nixpkgs-fmt
This CL can be used to compare the style of nixpkgs-fmt against other formatters (nixpkgs, alejandra). Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397 Tested-by: BuildkiteCI Reviewed-by: sterni <[email protected]> Reviewed-by: lukegb <[email protected]> Reviewed-by: wpcarro <[email protected]> Reviewed-by: Profpatsch <[email protected]> Reviewed-by: kanepyork <[email protected]> Reviewed-by: tazjin <[email protected]> Reviewed-by: cynthia <[email protected]> Reviewed-by: edef <[email protected]> Reviewed-by: eta <[email protected]> Reviewed-by: grfn <[email protected]> Original commit: https://code.tvl.fyi/patch/ops/kontemplate?id=aa122cbae78ce97d60c0c98ba14df753d97e40b1
1 parent c37470f commit e291696

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

release.nix

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@
1010
# This file is the Nix derivation used to build release binaries for
1111
# several different architectures and operating systems.
1212

13-
let pkgs = import ((import <nixpkgs> {}).fetchFromGitHub {
14-
owner = "NixOS";
15-
repo = "nixpkgs-channels";
16-
rev = "541d9cce8af7a490fb9085305939569567cb58e6";
17-
sha256 = "0jgz72hhzkd5vyq5v69vpljjlnf0lqaz7fh327bvb3cvmwbfxrja";
18-
}) {};
19-
in with pkgs; buildGoPackage rec {
13+
let
14+
pkgs = import
15+
((import <nixpkgs> { }).fetchFromGitHub {
16+
owner = "NixOS";
17+
repo = "nixpkgs-channels";
18+
rev = "541d9cce8af7a490fb9085305939569567cb58e6";
19+
sha256 = "0jgz72hhzkd5vyq5v69vpljjlnf0lqaz7fh327bvb3cvmwbfxrja";
20+
})
21+
{ };
22+
in
23+
with pkgs; buildGoPackage rec {
2024
name = "kontemplate-${version}";
2125
version = "canon";
2226
src = ./.;
@@ -29,8 +33,8 @@ in with pkgs; buildGoPackage rec {
2933
# reason for setting the 'allowGoReference' flag.
3034
dontStrip = true; # Linker configuration handles stripping
3135
allowGoReference = true;
32-
CGO_ENABLED="0";
33-
GOCACHE="off";
36+
CGO_ENABLED = "0";
37+
GOCACHE = "off";
3438

3539
# Configure release builds via the "build-matrix" script:
3640
buildInputs = [ git ];

0 commit comments

Comments
 (0)