Skip to content

Commit

Permalink
feat: Update Homerow application config
Browse files Browse the repository at this point in the history
  • Loading branch information
sudosubin committed Dec 14, 2024
1 parent c19f3c4 commit bc89d32
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
14 changes: 10 additions & 4 deletions libraries/nixpkgs/programs/homerow/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{ lib, stdenvNoCC, fetchzip, curl, jq, runCommand }:
{ lib, stdenvNoCC, fetchurl, curl, jq, runCommand, unzip }:

stdenvNoCC.mkDerivation rec {
pname = "homerow";
version = "1.3.2";

src = fetchzip {
url = "https://builds.homerow.app/latest/Homerow.zip";
src = fetchurl {
url = "https://builds.homerow.app/v${version}/Homerow.zip";
name = "Homerow.app";
sha256 = "0rb620a4zvc7vjwvcdn10y64agvan4bjplspx8d6p27k488bw588";
sha256 = "0ckksjfmfn24g5bsg1ws6a8lhnfxp74m5skg0gwzkhz7jh17bh9i";
};

nativeBuildInputs = [ unzip ];

unpackPhase = ''
unzip $src
'';

sourceRoot = "Homerow.app";

installPhase = ''
Expand Down
12 changes: 7 additions & 5 deletions scripts/auto-update-modules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@ modules:
methods:
get_version: |-
curl -s "https://api.github.com/repos/Hammerspoon/hammerspoon/releases/latest" | jq -r ".name"
- path: ./libraries/nixpkgs/programs/homerow/default.nix
args:
read_from_file: []
read_from_method: ["version", "sha256"]
read_from_file: ["url"]
read_from_method: ["version"]
write: ["version", "sha256"]
methods:
get_version: |-
echo "1.3.2"
get_sha256: |-
nix-prefetch-url "https://builds.homerow.app/latest/Homerow.zip" --name "Homerow.app" --unpack
curl -s https://www.homerow.app/appcast.xml \
| grep -m2 "title" \
| tail -n1 \
| sed -r "s|.*>([0-9.]+)<.*|\1|g"
- path: ./libraries/nixpkgs/programs/ijhttp/default.nix
args:
Expand Down

0 comments on commit bc89d32

Please sign in to comment.