uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
40
pkgs/applications/misc/sampler/default.nix
Normal file
40
pkgs/applications/misc/sampler/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ 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 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue