nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 44 lines 946 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 pkg-config, 6 openssl, 7 testers, 8 avml, 9 nix-update-script, 10}: 11 12rustPlatform.buildRustPackage rec { 13 pname = "avml"; 14 version = "0.15.0"; 15 16 src = fetchFromGitHub { 17 owner = "microsoft"; 18 repo = "avml"; 19 tag = "v${version}"; 20 hash = "sha256-QN9GLrs0wjlEdkNnN7Q4Uqu1yJlxD7Dx0SnHJnfV/so="; 21 }; 22 23 cargoHash = "sha256-u9oYchTvSvlth/Kn6SYuuP2VDVWQDNqueUsKumPooFU="; 24 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ openssl ]; 27 28 env = { 29 OPENSSL_NO_VENDOR = true; 30 }; 31 32 passthru.tests.version = testers.testVersion { package = avml; }; 33 34 passthru.updateScript = nix-update-script { }; 35 36 meta = { 37 description = "Portable volatile memory acquisition tool for Linux"; 38 homepage = "https://github.com/microsoft/avml"; 39 license = lib.licenses.mit; 40 maintainers = [ lib.maintainers.lesuisse ]; 41 platforms = lib.platforms.linux; 42 mainProgram = "avml"; 43 }; 44}