-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.nix
31 lines (26 loc) · 857 Bytes
/
app.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
pkgs ? import <nixpkgs> { }
}:
pkgs.buildGoModule {
pname = "usb_proxy";
version = "latest";
src = ./.;
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = [ pkgs.libusb ];
# vendorSha256 = "sha256-fSxtM+c6rkpKXALdaeMx3+gvAjtG2+mq0c+c9SvYzXY=";
# vendorSha256 = pkgs.lib.fakeHash;
vendorSha256 = "sha256-H5gbVcQdF5dgtaoLZ3DQJnUAmjjEXAqDLDm6GeNr/mw=";
subPackages = [ "cmd/main" ];
postInstall = ''
mv $out/bin/main $out/bin/usb_proxy
'';
# meta = with lib; {
# description = ''
# Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development
# cycle of your infrastructure-as-code with KICS by Checkmarx.
# '';
# homepage = "https://github.com/Checkmarx/kics";
# license = licenses.asl20;
# maintainers = with maintainers; [ patryk4815 ];
# };
}