Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 1.1 kB view raw
1{ 2 lib, 3 fetchurl, 4 stdenv, 5 dpkg, 6 autoPatchelfHook, 7 cairo, 8 gdk-pixbuf, 9 webkitgtk_4_1, 10 gtk3, 11}: 12 13stdenv.mkDerivation (finalAttrs: { 14 name = "eigenwallet"; 15 version = "2.0.3"; 16 17 src = fetchurl { 18 url = "https://github.com/eigenwallet/core/releases/download/${finalAttrs.version}/UnstoppableSwap_${finalAttrs.version}_amd64.deb"; 19 hash = "sha256-2uOsZ6IvaQes+FYGQ0cNYlySzjyNwf/3fqk3DJzN+WI="; 20 }; 21 22 nativeBuildInputs = [ 23 dpkg 24 autoPatchelfHook 25 ]; 26 27 buildInputs = [ 28 cairo 29 gdk-pixbuf 30 webkitgtk_4_1 31 gtk3 32 ]; 33 34 installPhase = '' 35 runHook preInstall 36 37 mkdir -p $out 38 mv {usr/bin,usr/share} $out 39 40 runHook postInstall 41 ''; 42 43 meta = { 44 description = "Protocol and desktop application for swapping Monero and Bitcoin"; 45 homepage = "https://unstoppableswap.net"; 46 maintainers = with lib.maintainers; [ JacoMalan1 ]; 47 license = lib.licenses.gpl3Only; 48 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 49 platforms = [ "x86_64-linux" ]; 50 mainProgram = "unstoppableswap-gui-rs"; 51 }; 52})