19 lines
525 B
Nix
19 lines
525 B
Nix
|
# SPDX-FileCopyrightText: 2022 Luke Granger-Brown <depot@lukegb.com>
|
||
|
#
|
||
|
# SPDX-License-Identifier: Apache-2.0
|
||
|
|
||
|
{ depot, pkgs, ... }:
|
||
|
depot.third_party.buildGo.external {
|
||
|
path = "github.com/jamespfennell/xz";
|
||
|
src = depot.third_party.nixpkgs.fetchFromGitHub {
|
||
|
owner = "jamespfennell";
|
||
|
repo = "xz";
|
||
|
rev = "v0.1.2";
|
||
|
hash = "sha256:0wdxda81zvzvxvkxazkn48qlw62nhyc4am9vj2yvv9ncas4gp7av";
|
||
|
};
|
||
|
cgo = true;
|
||
|
cgodeps = [ pkgs.lzma ];
|
||
|
cgocflags = [ "-DGOXZ_SKIP_C_COMPILATION" ];
|
||
|
cgoldflags = [ "-llzma" ];
|
||
|
}
|