at 22.05-pre 29 lines 934 B view raw
1{ stdenv, lib, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "miniscript"; 5 version = "unstable-2020-12-01"; 6 7 src = fetchFromGitHub { 8 owner = "sipa"; 9 repo = pname; 10 rev = "02682a398a35b410571b10cde7f39837141ddad6"; 11 sha256 = "079jz4g88cfzfm9a6ykby9haxwcs033c1288mgr8cl2hw4qd2sjl"; 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 = "http://bitcoin.sipa.be/miniscript/"; 25 license = licenses.mit; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ RaghavSood jb55 ]; 28 }; 29}