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 }: 2 3 stdenv.mkDerivation rec { 4 pname = "miniscript"; 5 - version = "unstable-2022-07-19"; 6 7 src = fetchFromGitHub { 8 owner = "sipa"; 9 repo = pname; 10 - rev = "ca675488c4aa9605f6ae70c0e68a148a6fb277b4"; 11 - sha256 = "sha256-kzLIJ0os6UnC0RPEybfw6wGrZpgmRCgj3zifmZjieoU="; 12 }; 13 14 installPhase = '' 15 runHook preInstall 16 mkdir -p $out/bin ··· 19 ''; 20 21 meta = with lib; { 22 - description = "Compiler and inspector for the miniscript Bitcoin policy language"; 23 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 ]; 28 mainProgram = "miniscript"; 29 }; 30 }
··· 1 + { 2 + stdenv, 3 + lib, 4 + fetchFromGitHub, 5 + }: 6 7 stdenv.mkDerivation rec { 8 pname = "miniscript"; 9 + version = "unstable-2023-03-16"; 10 11 src = fetchFromGitHub { 12 owner = "sipa"; 13 repo = pname; 14 + rev = "6806dfb15a1fafabf7dd28aae3c9d2bc49db01f1"; 15 + sha256 = "sha256-qkYDzsl2Y4WEDDXs9cE/jIXm01jclkYUQbDGe1S0wYs="; 16 }; 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 + 29 installPhase = '' 30 runHook preInstall 31 mkdir -p $out/bin ··· 34 ''; 35 36 meta = with lib; { 37 + description = "Compiler and inspector for the miniscript Bitcoin policy language"; 38 longDescription = "Miniscript is a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more."; 39 + homepage = "https://bitcoin.sipa.be/miniscript/"; 40 + license = licenses.mit; 41 + maintainers = with maintainers; [ 42 + RaghavSood 43 + jb55 44 + ]; 45 mainProgram = "miniscript"; 46 }; 47 }