Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

31 lines
700 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
}:
stdenv.mkDerivation {
pname = "defaultbrowser";
version = "1.1-unstable-2024-09-04";
src = fetchFromGitHub {
owner = "kerma";
repo = "defaultbrowser";
rev = "ad812c4e678a1e1f04cc44b8ab6d1ed5b8733359";
hash = "sha256-lZgIfbvTxlxlEh/NvNonZ1fVvcFynXWW1Fu2f9FIWiU=";
};
makeFlags = [
"CC=cc"
"PREFIX=$(out)"
];
meta = {
mainProgram = "defaultbrowser";
description = "Command line tool for getting and setting a default browser (HTTP handler) in Mac OS X";
homepage = "https://github.com/kerma/defaultbrowser";
platforms = lib.platforms.darwin;
maintainers = [ ];
license = lib.licenses.mit;
};
}