Files
nixpkgs/pkgs/by-name/cw/cwtch-ui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.4 KiB
Nix

{
cwtch,
fetchgit,
flutter329,
lib,
tor,
}:
let
runtimeBinDependencies = [
tor
];
in
flutter329.buildFlutterApplication rec {
pname = "cwtch-ui";
version = "1.16.0";
# This Gitea instance has archive downloads disabled, so: fetchgit
src = fetchgit {
url = "https://git.openprivacy.ca/cwtch.im/cwtch-ui";
rev = "v${version}";
hash = "sha256-887BiDqu35kocQmren9/rRhLdMNEXPmzsQFAixUvTxo=";
};
pubspecLock = lib.importJSON ./pubspec.json;
gitHashes = {
flutter_gherkin = "sha256-Y8tR84kkczQPBwh7cGhPFAAqrMZKRfGp/02huPaaQZg=";
};
flutterBuildFlags = [
"--dart-define"
"BUILD_VER=${version}"
"--dart-define"
"BUILD_DATE=1980-01-01-00:00"
];
# These things are added to LD_LIBRARY_PATH, but not PATH
runtimeDependencies = [ cwtch ];
extraWrapProgramArgs = "--prefix PATH : ${lib.makeBinPath runtimeBinDependencies}";
postInstall = ''
mkdir -p $out/share/applications
substitute linux/cwtch.template.desktop "$out/share/applications/cwtch.desktop" \
--replace-fail PREFIX "$out"
'';
meta = {
description = "Messaging app built on the cwtch decentralized, privacy-preserving, multi-party messaging protocol";
homepage = "https://cwtch.im/";
changelog = "https://docs.cwtch.im/changelog";
license = lib.licenses.mit;
mainProgram = "cwtch";
platforms = [ "x86_64-linux" ];
maintainers = [ lib.maintainers.gmacon ];
};
}