Compare commits
7 Commits
v5.0.172
...
d7f781bb84
| Author | SHA1 | Date | |
|---|---|---|---|
| d7f781bb84 | |||
| 29b11bee5a | |||
| 8b2fd7b95e | |||
| 1720c2c8b0 | |||
| f0630c4a63 | |||
| 1e336db1a9 | |||
| 92b7216c0b |
@@ -18,11 +18,11 @@
|
||||
);
|
||||
in
|
||||
rec {
|
||||
overlays.default = final: prev: { invoice-ninja-desktop = final.callPackage ./package.nix { }; };
|
||||
overlays.default = final: prev: { invoiceninja-desktop = final.callPackage ./package.nix { }; };
|
||||
|
||||
packages = forEachSystem (system: {
|
||||
invoice-ninja-desktop = pkgsBySystem.${system}.invoice-ninja-desktop;
|
||||
default = pkgsBySystem.${system}.invoice-ninja-desktop;
|
||||
invoiceninja-desktop = pkgsBySystem.${system}.invoiceninja-desktop;
|
||||
default = pkgsBySystem.${system}.invoiceninja-desktop;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
39
package.nix
39
package.nix
@@ -1,6 +1,26 @@
|
||||
{ lib, fetchFromGitHub, flutter319 }:
|
||||
{ lib
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
, wrapGAppsHook3
|
||||
, fetchFromGitHub
|
||||
, flutter332
|
||||
}:
|
||||
|
||||
let
|
||||
desktopFile = makeDesktopItem rec {
|
||||
name = "Invoice Ninja";
|
||||
desktopName = name;
|
||||
exec = "invoiceninja";
|
||||
icon = "invoiceninja";
|
||||
startupWMClass = "invoiceninja";
|
||||
categories = [ "Office" ];
|
||||
terminal = false;
|
||||
extraConfig = {
|
||||
X-MultipleArgs = "false";
|
||||
};
|
||||
};
|
||||
|
||||
in flutter332.buildFlutterApplication rec {
|
||||
version = "5.0.172";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -10,10 +30,7 @@ let
|
||||
hash = "sha256-yYGGmF0XiixDi/OuLdlKwN685BUsxcIFzIqXkJi4KMs=";
|
||||
};
|
||||
|
||||
in flutter319.buildFlutterApplication {
|
||||
inherit version src;
|
||||
|
||||
pname = "invoice-ninja-desktop";
|
||||
pname = "invoiceninja-desktop";
|
||||
|
||||
targetFlutterPlatform = "linux";
|
||||
|
||||
@@ -29,10 +46,22 @@ in flutter319.buildFlutterApplication {
|
||||
super_text_layout = "sha256-SGWTs2zHObYAC8J/LdtdmoDtI/EQZr0fJoYMpGcyGWE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
copyDesktopItems
|
||||
wrapGAppsHook3
|
||||
];
|
||||
|
||||
postUnpack = ''
|
||||
mv $sourceRoot/lib/.env.dart.example $sourceRoot/lib/.env.dart
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/icons
|
||||
mv $out/app/invoiceninja-desktop/data/flutter_assets/assets/images/icon.png $out/share/icons/invoiceninja.png
|
||||
'';
|
||||
|
||||
desktopItems = [ desktopFile ];
|
||||
|
||||
meta = {
|
||||
description = "Invoice Ninja desktop client";
|
||||
homepage = "https://github.com/invoiceninja/admin-portal";
|
||||
|
||||
Reference in New Issue
Block a user