Skip to content

Commit 8b7e8f0

Browse files
bump sha
1 parent b0c4c1e commit 8b7e8f0

File tree

1 file changed

+40
-49
lines changed

1 file changed

+40
-49
lines changed

Diff for: flake.nix

+40-49
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,46 @@
33

44
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
55

6-
outputs = {
7-
self,
8-
nixpkgs,
9-
}: let
10-
version = builtins.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101");
11-
# goOverlay = final: prev: {
12-
# go = prev.go.overrideAttrs (old: {
13-
# version = "1.23.2";
14-
# src = prev.fetchurl {
15-
# url = "https://go.dev/dl/go1.23.2.src.tar.gz";
16-
# hash = "sha256-NpMBYqk99BfZC9IsbhTa/0cFuqwrAkGO3aZxzfqc0H8=";
17-
# };
18-
# });
19-
# };
20-
withSystem = nixpkgs.lib.genAttrs [
21-
"x86_64-linux"
22-
"x86_64-darwin"
23-
"aarch64-linux"
24-
"aarch64-darwin"
25-
];
26-
withPkgs = callback:
27-
withSystem (
28-
system:
29-
callback (
30-
import nixpkgs {
31-
inherit system;
32-
# overlays = [goOverlay];
33-
}
34-
)
35-
);
36-
in {
37-
packages = withPkgs (pkgs: rec {
38-
narc = pkgs.buildGoModule {
39-
pname = "narc";
40-
inherit version;
41-
src = ./.;
42-
vendorHash = "sha256-eKIWyyYrEKxWZOFWHr8IBq3SAgHzeQtBLELclWmz+EA=";
43-
};
44-
default = narc;
45-
});
6+
outputs = { self, nixpkgs, }:
7+
let
8+
version = builtins.substring 0 8
9+
(self.lastModifiedDate or self.lastModified or "19700101");
10+
# goOverlay = final: prev: {
11+
# go = prev.go.overrideAttrs (old: {
12+
# version = "1.23.2";
13+
# src = prev.fetchurl {
14+
# url = "https://go.dev/dl/go1.23.2.src.tar.gz";
15+
# hash = "sha256-NpMBYqk99BfZC9IsbhTa/0cFuqwrAkGO3aZxzfqc0H8=";
16+
# };
17+
# });
18+
# };
19+
withSystem = nixpkgs.lib.genAttrs [
20+
"x86_64-linux"
21+
"x86_64-darwin"
22+
"aarch64-linux"
23+
"aarch64-darwin"
24+
];
25+
withPkgs = callback:
26+
withSystem (system:
27+
callback (import nixpkgs {
28+
inherit system;
29+
# overlays = [goOverlay];
30+
}));
31+
in {
32+
packages = withPkgs (pkgs: rec {
33+
narc = pkgs.buildGoModule {
34+
pname = "narc";
35+
inherit version;
36+
src = ./.;
37+
vendorHash = "sha256-4yAMLrPePI9FxvybN0AUNXn5mFTmkiooqVLUFXp3H8c=";
38+
};
39+
default = narc;
40+
});
4641

47-
devShells = withPkgs (pkgs: {
48-
default = pkgs.mkShell {
49-
buildInputs = with pkgs; [
50-
go
51-
];
52-
};
53-
});
42+
devShells = withPkgs (pkgs: {
43+
default = pkgs.mkShell { buildInputs = with pkgs; [ go ]; };
44+
});
5445

55-
formatter = withPkgs (pkgs: pkgs.nixfmt-rfc-style);
56-
};
46+
formatter = withPkgs (pkgs: pkgs.nixfmt-rfc-style);
47+
};
5748
}

0 commit comments

Comments
 (0)