mirror of
https://github.com/acaloiaro/btsw
synced 2026-07-21 10:12:22 +00:00
22 lines
547 B
Nix
22 lines
547 B
Nix
{
|
|
self,
|
|
pkgs ? import <nixpkgs> {},
|
|
...
|
|
}:
|
|
pkgs.buildGoModule rec {
|
|
pname = "btsw";
|
|
version = pkgs.lib.strings.removeSuffix "\n" (builtins.readFile ./version.txt);
|
|
src = ./.;
|
|
vendorHash = null;
|
|
ldflags = [
|
|
"-X 'main.version=${version}-nix'"
|
|
"-X 'main.commit=${self.rev or "dev"}'"
|
|
];
|
|
env.CGO_ENABLED = 0;
|
|
|
|
meta = {
|
|
description = "A tiny cli for Linux that quickly connects and disconnects paired bluetooth devices";
|
|
homepage = "https://github.com/acaloiaro/btsw";
|
|
license = pkgs.lib.licenses.bsd2;
|
|
};
|
|
}
|