Files
nixpkgs/pkgs/by-name/ch/choose-gui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
xcbuild,
apple-sdk_11,
}:
stdenv.mkDerivation rec {
pname = "choose-gui";
version = "1.5.0";
src = fetchFromGitHub {
owner = "chipsenkbeil";
repo = "choose";
rev = version;
hash = "sha256-ewXZpP3XmOuV/MA3fK4BwZnNb2jkE727Sse6oAd4HJk=";
};
nativeBuildInputs = [ xcbuild ];
buildInputs = [ apple-sdk_11 ];
buildPhase = ''
runHook preBuild
xcodebuild -configuration Release SYMROOT="./output" HOME="$(mktemp -d)" 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
niksingh710
];
mainProgram = "choose";
};
}