workon/flake.nix

29 lines
726 B
Nix
Raw Normal View History

2021-12-08 18:21:15 -05:00
{
description = "Manage tmux for what you work on.";
inputs = {
2022-06-07 21:29:21 -04:00
nixpkgs.url = "github:nixos/nixpkgs/release-22.05";
2021-12-08 18:21:15 -05:00
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.workon = pkgs.buildGoModule {
name = "workon";
src = self;
2022-06-07 21:29:21 -04:00
vendorSha256 = "sha256-ia0Z9yz2LrRAd9huncFtl/a6R3/gRpqbg6TdnauvEmQ=";
2021-12-08 18:21:15 -05:00
};
defaultPackage = self.packages.${system}.workon;
devShell = pkgs.mkShell {
name = "workon";
2022-05-17 22:03:31 -04:00
buildInputs = with pkgs; [ go gopls ];
2021-12-08 18:21:15 -05:00
};
}
);
}