workon/flake.nix
2022-06-27 19:30:40 -04:00

34 lines
853 B
Nix

{
description = "Manage tmux for what you work on.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/release-22.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.workon = pkgs.buildGoModule {
pname = "workon";
version = "0.2.0";
src = ./.;
vendorSha256 = "sha256-ia0Z9yz2LrRAd9huncFtl/a6R3/gRpqbg6TdnauvEmQ=";
};
defaultPackage = self.packages.${system}.workon;
devShell = pkgs.mkShell {
name = "workon";
buildInputs = with pkgs; [ go gopls ];
};
}
);
}