mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
ff323ed355
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
34 lines
809 B
Nix
34 lines
809 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "smug";
|
|
version = "0.3.3";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ivaaaan";
|
|
repo = "smug";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dQp9Ov8Si9DfziVtX3dXsJg+BNKYOoL9/WwdalQ5TVw=";
|
|
};
|
|
|
|
vendorHash = "sha256-vaDUzVRmpmNn8/vUPeR1U5N6T4llFRIk9A1lum8uauU=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.version=${version}" ];
|
|
|
|
postInstall = ''
|
|
installManPage ./man/man1/smug.1
|
|
installShellCompletion completion/smug.{bash,fish}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/ivaaaan/smug";
|
|
description = "Smug - tmux session manager";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ juboba ];
|
|
};
|
|
}
|