3 , buildPythonApplication
6 , gobject-introspection
28 buildPythonApplication rec {
33 src = fetchFromGitHub {
36 rev = "refs/tags/v${version}";
37 hash = "sha256-yNDnBTBmwcP3g51UkkLNyF4eHYjblwxPxS2lMwbFKUM=";
60 propagatedBuildInputs = [
76 # Wrapping this manually for SVG recognition
80 # Needed by the application
81 cp -R data $out/${python.sitePackages}/
83 # Icons and applications
84 install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.svg -t $out/share/pixmaps/
85 install -Dm 644 $out/${python.sitePackages}/data/vn.hoabinh.quan.CoBang.desktop -t $out/share/applications/
86 substituteInPlace $out/share/applications/vn.hoabinh.quan.CoBang.desktop \
87 --replace "Exec=" "Exec=$out/bin/"
91 wrapProgram $out/bin/cobang \
92 ''${gappsWrapperArgs[@]} \
93 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
94 --set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
98 description = "A QR code scanner desktop app for Linux";
99 homepage = "https://github.com/hongquan/CoBang";
100 license = licenses.gpl3Only;
101 maintainers = with maintainers; [ wolfangaukang ];
102 platforms = [ "x86_64-linux" ];