Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 885 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 qmake, 7 python3, 8 qtbase, 9 rocksdb_7_10, 10 zeromq, 11 nix-update-script, 12}: 13 14stdenv.mkDerivation (finalAttrs: { 15 pname = "fulcrum"; 16 version = "1.12.0.1"; 17 18 src = fetchFromGitHub { 19 owner = "cculianu"; 20 repo = "Fulcrum"; 21 tag = "v${finalAttrs.version}"; 22 hash = "sha256-/RlvbZ6/f0Jxj6oCeHjGWqlktvtNUNczOXi2/wYw2LQ="; 23 }; 24 25 nativeBuildInputs = [ 26 pkg-config 27 qmake 28 ]; 29 30 buildInputs = [ 31 python3 32 qtbase 33 rocksdb_7_10 34 zeromq 35 ]; 36 37 dontWrapQtApps = true; # no GUI 38 39 passthru.updateScript = nix-update-script { }; 40 41 meta = { 42 description = "Fast & nimble SPV server for Bitcoin Cash & Bitcoin BTC"; 43 homepage = "https://github.com/cculianu/Fulcrum"; 44 maintainers = with lib.maintainers; [ prusnak ]; 45 license = lib.licenses.gpl3Plus; 46 platforms = lib.platforms.unix; 47 }; 48})