Merge pull request #288931 from heywoodlh/choose-gui

choose-gui: init 1.3.1
This commit is contained in:
❄️
2024-07-04 20:17:08 -03:00
committed by GitHub
2 changed files with 54 additions and 0 deletions
+6
View File
@@ -8049,6 +8049,12 @@
name = "Nova Witterick";
keys = [ { fingerprint = "4304 6B43 8D83 078E 3DF7 10D6 DEB0 E15C 6D2A 5A7C"; } ];
};
heywoodlh = {
email = "nixpkgs@heywoodlh.io";
github = "heywoodlh";
githubId = 18178614;
name = "Spencer Heywood";
};
hh = {
email = "hh@m-labs.hk";
github = "HarryMakes";
+48
View File
@@ -0,0 +1,48 @@
{
lib,
stdenv,
fetchFromGitHub,
xcbuild,
darwin,
}:
stdenv.mkDerivation rec {
pname = "choose-gui";
version = "1.3.1";
src = fetchFromGitHub {
owner = "chipsenkbeil";
repo = "choose";
rev = version;
hash = "sha256-oR0GgMinKcBHaZWdE7O+mdbiLKKjkweECKbi80bjW+c=";
};
nativeBuildInputs = [ xcbuild ];
buildInputs = [ darwin.apple_sdk.frameworks.Cocoa ];
buildPhase = ''
runHook preBuild
xcodebuild -arch ${stdenv.hostPlatform.darwinArch} -configuration Release SYMROOT="./output" build
cp ./output/Release/choose choose
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp choose $out/bin/choose
chmod +x $out/bin/choose
runHook postInstall
'';
meta = {
description = "Fuzzy matcher for OS X that uses both std{in,out} and a native GUI";
homepage = "https://github.com/chipsenkbeil/choose";
license = lib.licenses.mit;
platforms = lib.platforms.darwin;
changelog = "https://github.com/chipsenkbeil/choose/blob/${version}/CHANGELOG.md";
maintainers = with lib.maintainers; [ heywoodlh ];
mainProgram = "choose";
};
}