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
38
pkgs/tools/misc/systrayhelper/default.nix
Normal file
38
pkgs/tools/misc/systrayhelper/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, pkg-config, libappindicator-gtk3, buildGoPackage, fetchFromGitHub }:
|
||||
|
||||
buildGoPackage rec {
|
||||
pname = "systrayhelper";
|
||||
version = "0.0.5";
|
||||
rev = "ded1f2ed4d30f6ca2c89a13db0bd3046c6d6d0f9";
|
||||
|
||||
goPackagePath = "github.com/ssbc/systrayhelper";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
rev = "v${version}";
|
||||
owner = "ssbc";
|
||||
repo = "systrayhelper";
|
||||
sha256 = "0bn3nf43m89qmh8ds5vmv0phgdz32idz1zisr47jmvqm2ky1a45s";
|
||||
};
|
||||
|
||||
# re date: https://github.com/NixOS/nixpkgs/pull/45997#issuecomment-418186178
|
||||
# > .. keep the derivation deterministic. Otherwise, we would have to rebuild it every time.
|
||||
ldflags = [
|
||||
"-X main.version=v${version}"
|
||||
"-X main.commit=${rev}"
|
||||
"-X main.date=nix-byrev"
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkg-config libappindicator-gtk3 ];
|
||||
buildInputs = [ libappindicator-gtk3 ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A systray utility written in go, using json over stdio for control and events";
|
||||
homepage = "https://github.com/ssbc/systrayhelper";
|
||||
maintainers = with maintainers; [ cryptix ];
|
||||
license = licenses.mit;
|
||||
# It depends on the inputs, i guess? not sure about solaris, for instance. go supports it though
|
||||
# I hope nix can figure this out?! ¯\\_(ツ)_/¯
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue