nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 buildGoModule, 5 go-mockery, 6 versionCheckHook, 7}: 8buildGoModule rec { 9 pname = "sesh"; 10 version = "2.20.0"; 11 12 nativeBuildInputs = [ 13 go-mockery 14 ]; 15 src = fetchFromGitHub { 16 owner = "joshmedeski"; 17 repo = "sesh"; 18 rev = "v${version}"; 19 hash = "sha256-YfgxXM8FPRAUk4jxUnQNNB8hMjiB5ZCRY2/S+OgzECs="; 20 }; 21 22 preBuild = '' 23 mockery 24 ''; 25 vendorHash = "sha256-GEWtbhZhgussFzfg1wNEU0Gr5zhXmwlsgH6d1cXOwvc="; 26 27 ldflags = [ 28 "-s" 29 "-w" 30 "-X main.version=${version}" 31 ]; 32 33 nativeInstallCheckInputs = [ versionCheckHook ]; 34 versionCheckKeepEnvironment = [ "HOME" ]; 35 doInstallCheck = true; 36 37 meta = { 38 description = "Smart session manager for the terminal"; 39 homepage = "https://github.com/joshmedeski/sesh"; 40 changelog = "https://github.com/joshmedeski/sesh/releases/tag/${src.rev}"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ 43 gwg313 44 randomdude 45 t-monaghan 46 ]; 47 mainProgram = "sesh"; 48 }; 49}