nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "ldproxy";
9 version = "0.31.4";
10
11 # The source of this tools actually comes from the set of tools located in the `esp-rs:embuild` repository
12 # cf: https://github.com/esp-rs/embuild
13 src = fetchFromGitHub {
14 owner = "esp-rs";
15 repo = "embuild";
16 rev = "v${version}";
17 hash = "sha256-YH2CPb3uBlPncd+KkP25xhCVvDB7HDxJuSqWOJ1LT3k=";
18 };
19
20 cargoHash = "sha256-/WBhgPyd5hR3DBYvV8pd7uZb6FeD3yiDe3wOKtyFRG8=";
21
22 # However we are only interested in building the specific crate located at `/ldproxy`
23 # cf: https://github.com/esp-rs/embuild/tree/v0.31.4/ldproxy
24 buildAndTestSubdir = "ldproxy";
25
26 meta = {
27 description = "Linker Proxy: a simple tool to forward linker arguments to the actual linker executable";
28 homepage = "https://github.com/esp-rs/embuild";
29 changelog = "https://github.com/esp-rs/embuild/blob/v${version}/CHANGELOG.md";
30 license = with lib.licenses; [
31 mit # or
32 asl20
33 ];
34 maintainers = with lib.maintainers; [ vpochapuis ];
35 };
36}