diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-09-14 13:17:39 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-09-14 13:17:39 +0000 |
commit | 56e87d10ec12e00eab5c4b5710e01ab50eec267f (patch) | |
tree | baff33c3da97619d02441379b3f0f369da8f3d5a /nixpkgs/pkgs/by-name/li/liana/package.nix | |
parent | cc14c6e02d8424c1d446d248f71e08243181af8d (diff) | |
parent | 3a2786eea085f040a66ecde1bc3ddc7099f6dbeb (diff) | |
download | nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.gz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.bz2 nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.lz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.xz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.zst nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/li/liana/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/li/liana/package.nix | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/li/liana/package.nix b/nixpkgs/pkgs/by-name/li/liana/package.nix new file mode 100644 index 000000000000..5aaecac63087 --- /dev/null +++ b/nixpkgs/pkgs/by-name/li/liana/package.nix @@ -0,0 +1,91 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, pkg-config +, cmake +, copyDesktopItems +, makeDesktopItem +, makeWrapper +, expat +, fontconfig +, freetype +, libGL +, systemd +, vulkan-loader +, xorg +}: + +let + runtimeLibs = [ + expat + fontconfig + freetype + freetype.dev + libGL + vulkan-loader + xorg.libX11 + xorg.libXcursor + xorg.libXi + xorg.libXrandr + ]; +in +rustPlatform.buildRustPackage rec { + pname = "liana"; + version = "2.0"; + + src = fetchFromGitHub { + owner = "wizardsardine"; + repo = pname; + rev = "v${version}"; + hash = "sha256-GQNPKlqOBoh684x57gVV3CImgO7HBqt3UFp6CHC13do="; + }; + + cargoLock = { + lockFile = ./Cargo.lock; + outputHashes = { + "liana-2.0.0" = "sha256-Dv/Ad8Kv7Mit8yhewzANbUbngQjtQaap/NQy9jqnbfA="; + "iced_futures-0.6.0" = "sha256-ejkAxU6DwiX1/119eA0GRapSmz7dqwx9M0uMwyDHATQ="; + }; + }; + + nativeBuildInputs = [ + pkg-config + cmake + copyDesktopItems + makeWrapper + ]; + + buildInputs = [ + fontconfig + systemd + ]; + + sourceRoot = "source/gui"; + + postInstall = '' + install -Dm0644 ./ui/static/logos/liana-app-icon.svg $out/share/icons/hicolor/scalable/apps/liana.svg + wrapProgram $out/bin/liana-gui --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeLibs}" + ''; + + desktopItems = [ + (makeDesktopItem { + name = "Liana"; + exec = "liana-gui"; + icon = "liana"; + desktopName = "Liana"; + comment = meta.description; + }) + ]; + + doCheck = true; + + meta = with lib; { + description = "A Bitcoin wallet leveraging on-chain timelocks for safety and recovery"; + homepage = "https://wizardsardine.com/liana"; + license = licenses.bsd3; + maintainers = with maintainers; [ dunxen ]; + platforms = platforms.linux; + broken = stdenv.isAarch64; + }; +} |