commit 58b9c8c88b7ab9232c5333889d4e1a5985a1dd63 Author: Jeffrey C. Ollie Date: Thu Nov 24 10:23:19 2022 -0600 first diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d6944e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/result* diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..76aee54 --- /dev/null +++ b/flake.lock @@ -0,0 +1,42 @@ +{ + "nodes": { + "flake-utils": { + "locked": { + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1669230746, + "narHash": "sha256-+rU3DixJnygpJsGhhp6OvViruJux4TaiCz4IO+DdtZU=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "42337aad353c5efff4382d7bf99deda491459845", + "type": "github" + }, + "original": { + "id": "nixpkgs", + "ref": "nixos-unstable", + "type": "indirect" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ba9ad3a --- /dev/null +++ b/flake.nix @@ -0,0 +1,68 @@ +{ + description = "openlens"; + + inputs = { + nixpkgs = { + url = "nixpkgs/nixos-unstable"; + }; + flake-utils = { + url = "github:numtide/flake-utils"; + }; + }; + outputs = { self, nixpkgs, flake-utils, ... }@inputs: + flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + }; + in + { + packages = { + boatswain = + let + pname = "boatswain"; + version = "0.2.2"; + in + pkgs.stdenv.mkDerivation { + inherit pname version; + src = builtins.fetchGit { + url = "https://gitlab.gnome.org/World/boatswain"; + ref = "refs/tags/${version}"; + rev = "3435a5b6feec3e8d6747b0c8066efff85c40eb75"; + }; + buildInputs = [ + pkgs.desktop-file-utils + pkgs.meson + pkgs.ninja + pkgs.pkg-config + pkgs.wrapGAppsHook + ]; + propagatedBuildInputs = [ + pkgs.gettext + pkgs.gusb + pkgs.hidapi + pkgs.json-glib + pkgs.libadwaita + pkgs.libpeas + pkgs.libportal-gtk4 + pkgs.libsecret + pkgs.libsoup_3 + ]; + meta = { + description = "Control Elgato Stream Deck devices."; + longDescription = '' + * Organize your actions in pages and profiles + * Set custom icons to buttons + * Play sound effects during your streams + * Control OBS Studio using Stream Deck (requires the obs-websocket extension) + ''; + homepage = "https://gitlab.gnome.org/World/boatswain"; + license = licenses.gpl3Plus; + platforms = platforms.all; + }; + }; + }; + } + ); + }