File tree Expand file tree Collapse file tree 2 files changed +2076
-0
lines changed
pkgs/by-name/li/libretrack Expand file tree Collapse file tree 2 files changed +2076
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ fetchFromGitHub ,
4+ flutterPackages-source ,
5+ libappindicator ,
6+ } :
7+
8+ flutterPackages-source . stable . buildFlutterApplication rec {
9+ pname = "libretrack" ;
10+ version = "1.7.0" ;
11+
12+ src = fetchFromGitHub {
13+ owner = "proninyaroslav" ;
14+ repo = "libretrack" ;
15+ tag = version ;
16+ hash = "sha256-USZ243M/0SOvlYns66zkhDQCuq+kgEWYdBZN3iBF9SA=" ;
17+ } ;
18+
19+ pubspecLock = lib . importJSON ./pubspec.lock.json ;
20+ gitHashes = {
21+ "receive_sharing_intent" = "sha256-YsvnLOZvYZMyKx3J596Q3/hY2Fn/AFT6nhLTTHdMFOE=" ;
22+ } ;
23+
24+ postPatch = ''
25+ substituteInPlace linux/CMakeLists.txt \
26+ --replace-fail 'find_library(APPINDICATOR_LIBRARY NAMES appindicator3)' 'find_library(${ libappindicator } NAMES appindicator3)' \
27+ --replace-fail 'target_link_libraries('' ${BINARY_NAME} PRIVATE '' ${APPINDICATOR_LIBRARY})' 'target_link_libraries('' ${BINARY_NAME} PRIVATE ${ libappindicator } /lib/libappindicator3.so)'
28+ '' ;
29+
30+ nativeBuildInputs = [
31+ libappindicator
32+ ] ;
33+
34+ postInstall = ''
35+ substituteInPlace snap/gui/org.proninyaroslav.libretrack.desktop \
36+ --replace-fail 'Icon='' ${SNAP}/meta/gui/libretrack.png' 'Icon=libretrack' \
37+
38+ install -Dm644 snap/gui/org.proninyaroslav.libretrack.desktop -t $out/share/applications
39+ install -Dm644 linux/icons/app-icon.svg $out/share/icons/hicolor/scalable/apps/libretrack.svg
40+ '' ;
41+
42+ meta = {
43+ description = "Private, cross-platform package tracking app" ;
44+ homepage = "https://github.com/proninyaroslav/libretrack" ;
45+ changelog = "https://github.com/proninyaroslav/libretrack/releases/tag/${ version } " ;
46+ license = lib . licenses . gpl3 ;
47+ maintainers = with lib . maintainers ; [ genga898 ] ;
48+ mainProgram = "libretrack" ;
49+ platforms = lib . platforms . linux ;
50+ } ;
51+ }
You can’t perform that action at this time.
0 commit comments