Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cables: init at 0.3.2 #345452

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18400,6 +18400,11 @@
githubId = 56157634;
name = "Ruben Hönle";
};
rubikcubed = {
github = "rubikcubed";
githubId = 91467402;
name = "rubikcubed";
};
ruby0b = {
github = "ruby0b";
githubId = 106119328;
Expand Down
38 changes: 38 additions & 0 deletions pkgs/by-name/ca/cables/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ pkgs, lib, ... }:

let
pname = "cables";
version = "0.3.2";
name = "${pname}-${version}";

src = pkgs.fetchurl {
url = "https://github.com/cables-gl/cables_electron/releases/download/v0.3.2/cables-0.3.2-linux-x64.AppImage";
sha256 = "sha256-D5Bgg5D03FPQF2HKow4yehcqToo4dpPudBg0W4UnqFs=";
};

appimageContents = pkgs.appimageTools.extract {
inherit pname version src;
postExtract = ''
substituteInPlace $out/${name}.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
'';
};

in
pkgs.appimageTools.wrapType2 {
inherit name src;

extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}

install -m 444 -D ${appimageContents}/${name}.desktop $out/share/applications/${pname}.desktop
install -m 444 -D ${appimageContents}/${name}.png $out/share/icons/hicolor/512x512/apps/${pname}.png
'';

meta = with lib; {
description = "Standalone version of cables, a tool for creating beautiful interactive content.";
homepage = "https://cables.gl/standalone";
license = licenses.mit;
maintainers = with maintainers; [ rubikcubed ];
platforms = [ "x86_64-linux" ];
};
}