nixpkgs/pkgs/applications/misc/sampler/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.0 KiB
Nix
Raw Normal View History

2023-09-21 14:23:40 +00:00
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, darwin, 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}";
2023-09-21 14:23:40 +00:00
hash = "sha256-H7QllAqPp35wHeJ405YSfPX3S4lH0/hdQ8Ja2OGLVtE=";
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";
2023-09-21 14:23:40 +00:00
hash = "sha256-c9nP92YHKvdc156OXgYVoyNNa5TkoFeDa78WxOTR9rM=";
2022-04-13 12:02:35 +00:00
})
];
2023-09-21 14:23:40 +00:00
vendorHash = "sha256-UZLF/oJbWUKwIPyWcT1QX+rIU5SRnav/3GLq2xT+jgk=";
2019-08-20 07:34:15 +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 ];
};
}