Skip to content

Commit be0203d

Browse files
update flake
1 parent c650843 commit be0203d

File tree

2 files changed

+32
-53
lines changed

2 files changed

+32
-53
lines changed

flake.lock

Lines changed: 4 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
{
2-
inputs = {
3-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
4-
flake-utils.url = "github:numtide/flake-utils";
5-
};
2+
description = "testr";
63

7-
outputs = { self, nixpkgs, flake-utils }:
8-
flake-utils.lib.eachDefaultSystem
9-
(system:
10-
let pkgs = import nixpkgs { inherit system; }; in
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
5+
6+
outputs =
7+
{ nixpkgs, ... }:
8+
let
9+
forAllSystems = nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed;
10+
in
11+
{
12+
devShells = forAllSystems (
13+
system:
14+
let
15+
pkgs = nixpkgs.legacyPackages.${system};
16+
in
1117
{
12-
devShells = {
13-
default = pkgs.mkShell {
14-
packages = with pkgs; [
15-
go
16-
editorconfig-checker
17-
];
18-
};
18+
default = pkgs.mkShell {
19+
name = "testr";
20+
shellHook = ''
21+
git rev-parse --is-inside-work-tree >/dev/null 2>&1 || git init
22+
git config pull.rebase true
23+
${pkgs.neo-cowsay}/bin/cowsay -f sage "testr"
24+
'';
25+
buildInputs = with pkgs; [
26+
editorconfig-checker
27+
go
28+
gopls
29+
delve
30+
];
1931
};
2032
}
2133
);
34+
};
2235
}

0 commit comments

Comments
 (0)