eculocate

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

default.nix (871B)


      1 {
      2   lib,
      3   makeDesktopItem,
      4   python3Packages,
      5   wrapGAppsHook3,
      6   gobject-introspection,
      7   gtk3,
      8   librsvg,
      9 }:
     10 
     11 python3Packages.buildPythonApplication rec {
     12   pname = "eculocate";
     13   version = "0.7";
     14   pyproject = true;
     15   build-system = [ python3Packages.setuptools ];
     16   src = ./.;
     17   dependencies = with python3Packages; [
     18     pynacl
     19     zeroconf
     20     bleak
     21   ];
     22   nativeBuildInputs = [
     23     wrapGAppsHook3
     24     gobject-introspection
     25     gtk3
     26   ];
     27   propagatedBuildInputs = [
     28     gobject-introspection
     29     gtk3
     30     librsvg
     31     python3Packages.pygobject3
     32   ];
     33   postInstall = ''
     34     install -Dm644 ${./eculocate.svg} $out/share/icons/hicolor/scalable/apps/eculocate.svg
     35   '';
     36   desktopItems = [
     37     (makeDesktopItem {
     38       name = "eculocate";
     39       desktopName = "Eculocate";
     40       exec = "eculocate";
     41       type = "Application";
     42       icon = "eculocate.svg";
     43     })
     44   ];
     45 }