18 lines
523 B
Nix
18 lines
523 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.xz ];
|
|
cgocflags = [ "-DGOXZ_SKIP_C_COMPILATION" ];
|
|
cgoldflags = [ "-llzma" ];
|
|
}
|