Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 13 additions & 26 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.inputs.systems.follows = "systems";
};

treefmt-nix = {
Expand All @@ -33,7 +34,9 @@
perSystem =
{ inputs', pkgs, ... }:
let
devctl = inputs'.gomod2nix.legacyPackages.buildGoApplication {
inherit (inputs'.gomod2nix.legacyPackages) gomod2nix buildGoApplication;

devctl = buildGoApplication {
pname = "devctl";
version = "v0.3.0";
src = ./.;
Expand Down Expand Up @@ -64,15 +67,15 @@
git
gnumake
go
inputs'.gomod2nix.packages.default
gomod2nix
nil
nixfmt-rfc-style
nixfmt
];

DPRINT = pkgs.dprint + "/bin/dprint";
GO = pkgs.go + "/bin/go";
GOMOD2NIX = inputs'.gomod2nix.packages.default + "/bin/gomod2nix";
NIXFMT = pkgs.nixfmt-rfc-style + "/bin/nixfmt";
GOMOD2NIX = gomod2nix + "/bin/gomod2nix";
NIXFMT = pkgs.nixfmt + "/bin/nixfmt";
};

treefmt = {
Expand Down