Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jankyborders: init at 1.6.0 #268334

Merged
merged 1 commit into from
Mar 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions pkgs/by-name/ja/jankyborders/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{ lib
, fetchFromGitHub
, pkg-config
, pkgs
, overrideSDK
, darwin
, testers
}:
let
stdenv = overrideSDK pkgs.stdenv "11.0";
in
stdenv.mkDerivation (finalAttrs: {
pname = "JankyBorders";
version = "1.6.0";

src = fetchFromGitHub {
owner = "FelixKratz";
repo = "JankyBorders";
rev = "v${finalAttrs.version}";
hash = "sha256-DX1d228UCOI+JU+RxenhiGyn3AiqpsGe0aCtr091szs=";
};

nativeBuildInputs = [
pkg-config
];

buildInputs = with darwin.apple_sdk.frameworks; [
AppKit
ApplicationServices
CoreFoundation
CoreGraphics
SkyLight
];

installPhase = ''
runHook preInstall

mkdir -p $out/bin
cp ./bin/borders $out/bin/borders

runHook postInstall
'';

passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "borders-v${finalAttrs.version}";
};

meta = {
description = "JankyBorders is a lightweight tool designed to add colored borders to user windows on macOS 14.0+";
longDescription = "It enhances the user experience by visually highlighting the currently focused window without relying on the accessibility API, thereby being faster than comparable tools.";
homepage = "https://github.com/FelixKratz/JankyBorders";
license = lib.licenses.gpl3;
mainProgram = "borders";
maintainers = with lib.maintainers; [ khaneliman ];
platforms = lib.platforms.darwin;
};
})
Loading