mirror of
https://codeberg.org/muon/home.git
synced 2026-07-03 23:49:35 +00:00
Merge branch 'main' into mups
This commit is contained in:
commit
ea10bd0c70
5 changed files with 158 additions and 0 deletions
|
|
@ -1,4 +1,25 @@
|
|||
{
|
||||
"dcts-client-shipping": {
|
||||
"cargoLock": null,
|
||||
"date": null,
|
||||
"extract": null,
|
||||
"name": "dcts-client-shipping",
|
||||
"passthru": null,
|
||||
"pinned": false,
|
||||
"src": {
|
||||
"deepClone": false,
|
||||
"fetchSubmodules": false,
|
||||
"leaveDotGit": false,
|
||||
"name": null,
|
||||
"owner": "hackthedev",
|
||||
"repo": "dcts-client-shipping",
|
||||
"rev": "v2.5",
|
||||
"sha256": "sha256-fmU/rUIyHV/+GSgDuot3mDaZrYmxfhF3RXSAwE6HqPU=",
|
||||
"sparseCheckout": [],
|
||||
"type": "github"
|
||||
},
|
||||
"version": "v2.5"
|
||||
},
|
||||
"mender-cli": {
|
||||
"cargoLock": null,
|
||||
"date": null,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,17 @@
|
|||
dockerTools,
|
||||
}:
|
||||
{
|
||||
dcts-client-shipping = {
|
||||
pname = "dcts-client-shipping";
|
||||
version = "v2.5";
|
||||
src = fetchFromGitHub {
|
||||
owner = "hackthedev";
|
||||
repo = "dcts-client-shipping";
|
||||
rev = "v2.5";
|
||||
fetchSubmodules = false;
|
||||
sha256 = "sha256-fmU/rUIyHV/+GSgDuot3mDaZrYmxfhF3RXSAwE6HqPU=";
|
||||
};
|
||||
};
|
||||
mender-cli = {
|
||||
pname = "mender-cli";
|
||||
version = "2.0.0";
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
# inherit (pkgs) system;
|
||||
# config = pkgs.config;
|
||||
# }).freetube;
|
||||
dcts-client-shipping = pkgs.callPackage ../../../pkgs/dcts-client-shipping/package.nix { inherit sources; };
|
||||
in {
|
||||
options.mods.social.enable =
|
||||
lib.mkEnableOption "enables social media clients";
|
||||
|
|
@ -26,6 +27,7 @@ in {
|
|||
# vesktop-nogain
|
||||
# (callPackage ./packages/librediscord.nix {})
|
||||
jami
|
||||
dcts-client-shipping
|
||||
|
||||
# Video
|
||||
# freetube-custom
|
||||
|
|
|
|||
|
|
@ -161,3 +161,7 @@ fetch.tarball = "https://thunderstore.io/package/download/BentoG/MissingPieces/$
|
|||
src.github = "mendersoftware/mender-cli"
|
||||
fetch.github = "mendersoftware/mender-cli"
|
||||
|
||||
["dcts-client-shipping"]
|
||||
src.github = "hackthedev/dcts-client-shipping"
|
||||
fetch.github = "hackthedev/dcts-client-shipping"
|
||||
|
||||
|
|
|
|||
120
pkgs/dcts-client-shipping/package.nix
Normal file
120
pkgs/dcts-client-shipping/package.nix
Normal file
|
|
@ -0,0 +1,120 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
stdenvNoCC,
|
||||
bun,
|
||||
electron,
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
makeBinaryWrapper,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
sources,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "dcts-client-shipping";
|
||||
version = sources.dcts-client-shipping.version;
|
||||
src = sources.dcts-client-shipping.src;
|
||||
|
||||
node_modules = stdenvNoCC.mkDerivation {
|
||||
pname = "${finalAttrs.pname}-node_modules";
|
||||
inherit (finalAttrs) version src;
|
||||
|
||||
impureEnvVars = lib.fetchers.proxyImpureEnvVars ++ [
|
||||
"GIT_PROXY_COMMAND"
|
||||
"SOCKS_SERVER"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
bun
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
cd electron
|
||||
bun install \
|
||||
--cpu="*" \
|
||||
--frozen-lockfile \
|
||||
--ignore-scripts \
|
||||
--no-progress \
|
||||
--os="*"
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/electron
|
||||
cp -R node_modules $out/electron/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
# NOTE: Required else we get errors that our fixed-output derivation references store paths
|
||||
dontFixup = true;
|
||||
|
||||
outputHash = "sha256-TwfxQeK1KkKY1n/735sTxcAQfR5hUrONJcWeIaM47SE=";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHashMode = "recursive";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
bun
|
||||
makeBinaryWrapper
|
||||
copyDesktopItems
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = "dcts";
|
||||
desktopName = "DCTS";
|
||||
comment = "DCTS Desktop Client - Secure messaging";
|
||||
exec = "dcts";
|
||||
icon = "dcts";
|
||||
categories = [ "Network" "InstantMessaging" ];
|
||||
})
|
||||
];
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
# Copy node_modules from the separate derivation
|
||||
cp -R ${finalAttrs.node_modules}/electron/node_modules electron/
|
||||
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/lib/dcts
|
||||
cp -R electron/* $out/lib/dcts/
|
||||
|
||||
# Create wrapper script
|
||||
makeWrapper ${electron}/bin/electron $out/bin/dcts \
|
||||
--add-flags $out/lib/dcts \
|
||||
--set ELECTRON_OVERRIDE_DIST_PATH ${electron}/bin/
|
||||
|
||||
# Install icon
|
||||
install -Dm644 electron/icon.png $out/share/icons/hicolor/256x256/apps/dcts.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "DCTS Desktop Client - Electron app for secure messaging";
|
||||
homepage = "https://github.com/hackthedev/dcts-client-shipping";
|
||||
license = lib.licenses.isc;
|
||||
maintainers = [ ];
|
||||
platforms = lib.platforms.linux;
|
||||
mainProgram = "dcts";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue