-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
manager-io: init at 24.12.23.1999 #368162
base: master
Are you sure you want to change the base?
Conversation
everything should be named correctly and files pass checks |
Co-authored-by: aucub <78630225+aucub@users.noreply.github.com>
Co-authored-by: aucub <78630225+aucub@users.noreply.github.com>
Co-authored-by: aucub <78630225+aucub@users.noreply.github.com>
i will in a little bit |
how do i generate a desktop file for it I'm not familiar with the command |
There is already a desktop file provided by the AppImage. it is in |
okay thank you |
use this as an example. quick warning when you install it check if you are able to create businesses or able to click on them without crashing. {
stdenv,
fetchurl,
lib,
appimageTools,
icu,
webkitgtk_6_0,
webkitgtk_4_0, # for older devices
mono,
libnotify,
lttng-ust,
}:
let
pname = "manager-io";
version = "24.12.23.1999";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/Manager-io/Manager/releases/download/${version}/Manager-linux-x64.AppImage";
hash = "sha256-RwpuI08w0lnP+2V4tiubw4wzc6ya6sAajJi4k5eUyzo=";
};
appimageContents = appimageTools.extract {
inherit pname version src;
postExtra =
let
libPath = lib.makeLibraryPath [
icu
webkitgtk_6_0
webkitgtk_4_0 # for older devices
mono
libnotify
stdenv.cc.cc
lttng-ust
];
in ''
patchelf \
--add-needed libicui18n.so \
--add-needed libicuuc.so \
$out/opt/manager/libcoreclr.so \
$out/opt/manager/*System.Globalization.Native.so
patchelf \
--add-needed libgssapi_krb5.so \
$out/opt/manager/*System.Net.Security.Native.so
patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/opt/manager/libcoreclrtraceptprovider.so
patchelf --add-needed libssl.so \
$out/opt/manager/*System.Security.Cryptography.Native.OpenSsl.so
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${libPath}" \
$out/opt/manager/ManagerDesktop
'';
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -m 444 -D ${appimageContents}/manager.desktop -t $out/share/applications
cp -r ${appimageContents}/usr/share/icons $out/share
'';
extraPkgs = pkgs: with pkgs; [
icu
webkitgtk_6_0
webkitgtk_4_0 # for older devices
mono
libnotify
stdenv.cc.cc
lttng-ust
];
meta = {
description = "Free Accounting software for Windows, Mac and Linux";
homepage = "https://www.manager.io";
license = with lib.licenses; [ unfree ];
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = [
"x86_64-linux"
];
};
} |
alright |
I'm spending Christmas with my family i will work on it later today or tomorrow |
@aucub Code is functional. Would you please take a look |
appimageContents = appimageTools.extract { | ||
inherit pname version src; | ||
|
||
postExtra = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't work because the files were not used elsewhere
cp -r ${appimageContents}/usr/share/icons $out/share | ||
''; | ||
|
||
extraPkgs = pkgs: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this contains unwanted dependencies
Closes #367590 and adds manager-io to nixpkgs
adds darwincereska to maintainers-list.nix
Accounting software. Available for Windows, Mac and Linux.
manager.io
Notes: You need libicu for the program to work
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.