Skip to content

Commit

Permalink
feat: Add input-source-pro
Browse files Browse the repository at this point in the history
  • Loading branch information
sudosubin committed Feb 2, 2025
1 parent 90ec358 commit c64e910
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 12 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions libraries/nixpkgs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ in
hammerspoon = final.callPackage ./programs/hammerspoon { };
homerow = final.callPackage ./programs/homerow { };
ijhttp = final.callPackage ./programs/ijhttp { };
input-source-pro = final.callPackage ./programs/input-source-pro { };
orbstack = final.callPackage ./programs/orbstack { };
pragmatapro = final.callPackage ./programs/pragmatapro { };
redisinsight = final.callPackage ./programs/redisinsight { };
Expand All @@ -37,6 +38,7 @@ in
"google-chrome"
"homerow"
"ijhttp"
"input-source-pro"
"ngrok"
"orbstack"
"raycast"
Expand Down
28 changes: 28 additions & 0 deletions libraries/nixpkgs/programs/input-source-pro/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib, fetchurl, stdenvNoCC, _7zz }:

stdenvNoCC.mkDerivation rec {
pname = "input-source-pro";
version = "2.5.0-beta";

src = fetchurl {
url = "https://inputsource.pro/beta/Input_Source_Pro_${version}.dmg";
sha256 = "1x1cplx812hchiycl0i6m3lqcq8jhk7n34vwxd5wnl6s7a1h9px2";
};

sourceRoot = "Input Source Pro.app";

nativeBuildInputs = [ _7zz ];

installPhase = ''
mkdir -p "$out/Applications/${sourceRoot}"
cp -R . "$out/Applications/${sourceRoot}"
'';

meta = with lib; {
homepage = "https://inputsource.pro/";
description = "Switch and track your input sources with ease";
license = licenses.unfree;
platforms = platforms.darwin;
maintainers = [ maintainers.sudosubin ];
};
}
1 change: 1 addition & 0 deletions modules/darwin/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
cleanshot
deskpad
discord
input-source-pro
nodePackages.localtunnel
redisinsight
ripgrep
Expand Down
10 changes: 10 additions & 0 deletions scripts/auto-update-modules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,16 @@ modules:
| grep -i location \
| sed -r "s|.*/http-client/([0-9.]+)/.*|\1|g"
- path: ./libraries/nixpkgs/programs/input-source-pro/default.nix
args:
read_from_file: ["url"]
read_from_method: ["version"]
write: ["version", "sha256"]
methods:
get_version: |-
curl -s "https://formulae.brew.sh/api/cask/input-source-pro.json" \
| jq -r ".version"
- path: ./libraries/nixpkgs/programs/orbstack/default.nix
args:
read_from_file: ["url"]
Expand Down

0 comments on commit c64e910

Please sign in to comment.