depot/third_party/nixpkgs/pkgs/applications/misc/sampler/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

39 lines
1 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, fetchpatch, darwin, libiconv, alsa-lib, stdenv }:
buildGoModule rec {
pname = "sampler";
version = "1.1.0";
src = fetchFromGitHub {
owner = "sqshq";
repo = pname;
rev = "v${version}";
sha256 = "1lanighxhnn28dfzils7i55zgxbw2abd6y723mq7x9wg1aa2bd0z";
};
patches = [
# fix build with go 1.17
(fetchpatch {
url = "https://github.com/sqshq/sampler/commit/97a4a0ebe396a780d62f50f112a99b27044e832b.patch";
sha256 = "1czns7jc85mzdf1mg874jimls8x32l35x3lysxfgfah7cvvwznbk";
})
];
vendorSha256 = "02cfzqadpsk2vkzsp7ciji9wisjza0yp35pw42q44navhbzcb4ji";
doCheck = false;
subPackages = [ "." ];
buildInputs = lib.optional stdenv.isLinux alsa-lib
++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.OpenAL
];
meta = with lib; {
description = "Tool for shell commands execution, visualization and alerting";
homepage = "https://sampler.dev";
license = licenses.gpl3;
maintainers = with maintainers; [ uvnikita ];
};
}