2022-04-13 12:02:35 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, darwin, libiconv, alsa-lib, stdenv }:
|
2019-08-20 07:34:15 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sampler";
|
2020-03-14 12:51:22 +00:00
|
|
|
version = "1.1.0";
|
2019-08-20 07:34:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sqshq";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-03-14 12:51:22 +00:00
|
|
|
sha256 = "1lanighxhnn28dfzils7i55zgxbw2abd6y723mq7x9wg1aa2bd0z";
|
2019-08-20 07:34:15 +00:00
|
|
|
};
|
|
|
|
|
2022-04-13 12:02:35 +00:00
|
|
|
patches = [
|
|
|
|
# fix build with go 1.17
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/sqshq/sampler/commit/97a4a0ebe396a780d62f50f112a99b27044e832b.patch";
|
|
|
|
sha256 = "1czns7jc85mzdf1mg874jimls8x32l35x3lysxfgfah7cvvwznbk";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorSha256 = "02cfzqadpsk2vkzsp7ciji9wisjza0yp35pw42q44navhbzcb4ji";
|
2019-08-20 07:34:15 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2019-08-20 07:34:15 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2022-04-21 23:27:36 +00:00
|
|
|
buildInputs = lib.optional stdenv.isLinux alsa-lib
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.OpenAL
|
|
|
|
];
|
2019-08-20 07:34:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for shell commands execution, visualization and alerting";
|
|
|
|
homepage = "https://sampler.dev";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|