|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub }: |
|
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: |
|
|
|
|
|
|
|
|
|
buildGoModule rec { |
|
|
|
|
pname = "smug"; |
|
|
|
@ -9,12 +9,20 @@ buildGoModule rec { |
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "ivaaaan"; |
|
|
|
|
repo = "smug"; |
|
|
|
|
rev = "3399f02a6e01324f5bb881f6b049c9e8d94733ee"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "178125835dhnaq9k42yv4pfxpyhgb5179wrxkimb59fy0nk8jzx8"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
vendorSha256 = "1rba5rpvlr8dyhj145b5i57pm4skfpj3vm7vydkn79k6ak6x985x"; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ]; |
|
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ]; |
|
|
|
|
|
|
|
|
|
postInstall = '' |
|
|
|
|
installManPage ./man/man1/smug.1 |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
homepage = "https://github.com/ivaaaan/smug"; |
|
|
|
|
description = "Smug - tmux session manager"; |
|
|
|
|