This commit is contained in:
Jeffrey C. Ollie 2022-11-24 10:23:19 -06:00
commit 58b9c8c88b
Signed by: jeff
GPG key ID: 6F86035A6D97044E
3 changed files with 111 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/result*

42
flake.lock Normal file
View file

@ -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
}

68
flake.nix Normal file
View file

@ -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;
};
};
};
}
);
}