at 23.11-beta 29 lines 934 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.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 17 cp miniscript $out/bin/miniscript 18 runHook postInstall 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 }; 29}