flake.nix 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
  3. inputs.gtkflow.url = "git+https://notabug.org/grindhold/libgtkflow.git";
  4. outputs = { self, nixpkgs, gtkflow }:
  5. let
  6. system = "x86_64-linux";
  7. in {
  8. packages.x86_64-linux.default =
  9. with import nixpkgs {inherit system;};
  10. stdenv.mkDerivation rec {
  11. pname = "effector";
  12. version = "0.2";
  13. src = ./.;
  14. nativeBuildInputs = [
  15. vala
  16. meson
  17. ninja
  18. pkg-config
  19. wrapGAppsHook
  20. ];
  21. buildInputs = [
  22. glib
  23. gtk3
  24. libgflow
  25. libgtkflow3
  26. json-glib.dev
  27. gegl
  28. ];
  29. meta = with lib; {
  30. description = "GEGL filter chain editor";
  31. homepage = "https://notabug.org/grindhold/effector";
  32. maintainers = with maintainers; [ grindhold ];
  33. license = licenses.gpl3Plus;
  34. platforms = platforms.unix;
  35. };
  36. };
  37. devShell.x86_64-linux =
  38. with import nixpkgs {inherit system;};
  39. mkShell {
  40. name = "flohmarkt devshell";
  41. buildInputs = [
  42. vala
  43. meson
  44. ninja
  45. pkg-config
  46. wrapGAppsHook
  47. glib
  48. gtk3
  49. gtkflow.packages.x86_64-linux.libgflow
  50. gtkflow.packages.x86_64-linux.libgtkflow3
  51. gegl
  52. ];
  53. };
  54. };
  55. }