Merge pull request #311338 from RaghavSood/miniscript/2023-03-16

miniscript: unstable-2022-07-19 -> unstable-2023-03-16

authored by Raghav Sood and committed by GitHub 1bf2c8b0 3beec405

+26 -9
+26 -9
pkgs/applications/blockchains/miniscript/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub }: 1 + { 2 + stdenv, 3 + lib, 4 + fetchFromGitHub, 5 + }: 2 6 3 7 stdenv.mkDerivation rec { 4 8 pname = "miniscript"; 5 - version = "unstable-2022-07-19"; 9 + version = "unstable-2023-03-16"; 6 10 7 11 src = fetchFromGitHub { 8 12 owner = "sipa"; 9 13 repo = pname; 10 - rev = "ca675488c4aa9605f6ae70c0e68a148a6fb277b4"; 11 - sha256 = "sha256-kzLIJ0os6UnC0RPEybfw6wGrZpgmRCgj3zifmZjieoU="; 14 + rev = "6806dfb15a1fafabf7dd28aae3c9d2bc49db01f1"; 15 + sha256 = "sha256-qkYDzsl2Y4WEDDXs9cE/jIXm01jclkYUQbDGe1S0wYs="; 12 16 }; 13 17 18 + postPatch = lib.optionalString stdenv.isDarwin '' 19 + # Replace hardcoded g++ with c++ so clang can be used 20 + # on darwin 21 + # 22 + # lto must be disabled on darwin as well due to 23 + # https://github.com/NixOS/nixpkgs/issues/19098 24 + substituteInPlace Makefile \ 25 + --replace-fail 'g++' 'c++' \ 26 + --replace-fail '-flto' "" 27 + ''; 28 + 14 29 installPhase = '' 15 30 runHook preInstall 16 31 mkdir -p $out/bin ··· 19 34 ''; 20 35 21 36 meta = with lib; { 22 - description = "Compiler and inspector for the miniscript Bitcoin policy language"; 37 + description = "Compiler and inspector for the miniscript Bitcoin policy language"; 23 38 longDescription = "Miniscript is a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more."; 24 - homepage = "https://bitcoin.sipa.be/miniscript/"; 25 - license = licenses.mit; 26 - platforms = platforms.linux; 27 - maintainers = with maintainers; [ RaghavSood jb55 ]; 39 + homepage = "https://bitcoin.sipa.be/miniscript/"; 40 + license = licenses.mit; 41 + maintainers = with maintainers; [ 42 + RaghavSood 43 + jb55 44 + ]; 28 45 mainProgram = "miniscript"; 29 46 }; 30 47 }