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
2 changes: 2 additions & 0 deletions modules/dev/p.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ in

xdg.configFile."p/config.yaml".text = ''
code_dir: "${codeDir}"

tmux: true
'';

# Order matters: `p init` defines the `p` shell function, and the
Expand Down
11 changes: 6 additions & 5 deletions overlays/p.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ let
in
{
# Project switcher for a GOPATH-style source tree: https://github.com/albttx/p
p = pkgs.buildGoModule {
p = pkgs.buildGoModule (finalAttrs: {
pname = "p";
version = "0-unstable-2026-09-08";
version = "0.2.0";

src = pkgs.fetchFromGitHub {
owner = "albttx";
repo = "p";
rev = "9a43a1515ce8df1222a283c77b3bbf7659f7f9ba";
hash = "sha256-1Sz0cycwR971xaVGAfzNmFtr64ilq3m5VHgms5Xt9/0=";
rev = "v${finalAttrs.version}";
hash = "sha256-C+fHM+0wGAQgvyuLOO/F7RHe7MNwHkjBd5tiWUii6nw=";
};

vendorHash = "sha256-1oU2POF3UJ+PiliuwoAn2URosVvEi97uc92AcPCg97s=";
Expand All @@ -23,12 +23,13 @@ in
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];

meta = with pkgs.lib; {
description = "Project switcher for a GOPATH-style source tree, with tmux session-per-project";
homepage = "https://github.com/albttx/p";
mainProgram = "p";
};
};
});
}
Loading