2020-11-04 16:13:37 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "miniscript";
|
2022-07-24 10:34:33 +00:00
|
|
|
version = "unstable-2022-07-19";
|
2020-11-04 16:13:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sipa";
|
|
|
|
repo = pname;
|
2022-07-24 10:34:33 +00:00
|
|
|
rev = "ca675488c4aa9605f6ae70c0e68a148a6fb277b4";
|
|
|
|
sha256 = "sha256-kzLIJ0os6UnC0RPEybfw6wGrZpgmRCgj3zifmZjieoU=";
|
2020-11-04 16:13:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp miniscript $out/bin/miniscript
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Compiler and inspector for the miniscript Bitcoin policy language";
|
|
|
|
longDescription = "Miniscript is a language for writing (a subset of) Bitcoin Scripts in a structured way, enabling analysis, composition, generic signing and more.";
|
|
|
|
homepage = "http://bitcoin.sipa.be/miniscript/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ RaghavSood jb55 ];
|
|
|
|
};
|
|
|
|
}
|