Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchgit, 5}: 6rustPlatform.buildRustPackage { 7 pname = "taler-depolymerization"; 8 version = "0-unstable-2024-06-17"; 9 10 src = fetchgit { 11 url = "https://git.taler.net/depolymerization.git/"; 12 rev = "a0d27ac3bba22d4934ca9f7b244b0d9e45bb484f"; 13 hash = "sha256-HmQ/DPq/O6aODWms/bSsCVgBF7z246xxfYxiHrAkgYw="; 14 }; 15 16 cargoHash = "sha256-P0VrXYbO4RD3cNTai2hfTksbiGldkwoYgZm+C5Jh/4Y="; 17 18 outputs = [ 19 "out" 20 "doc" 21 ]; 22 23 postPatch = '' 24 # fix missing expression in test docs 25 substituteInPlace common/src/status.rs \ 26 --replace-fail ' -> Requested' '() -> Requested' 27 ''; 28 29 postInstall = '' 30 mkdir -p $doc/share/doc $out/share/examples 31 32 cp -R docs $doc/share/doc/taler-depolymerization 33 cp docs/*.conf $out/share/examples 34 ''; 35 36 meta = { 37 description = "Wire gateway for Bitcoin/Ethereum"; 38 homepage = "https://git.taler.net/depolymerization.git/"; 39 license = lib.licenses.agpl3Only; 40 teams = [ lib.teams.ngi ]; 41 }; 42}