Files
nixpkgs/pkgs/by-name/ft/ftx-prog/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

43 lines
900 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
libftdi,
libusb1,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ftx-prog";
version = "0.4";
src = fetchFromGitHub {
owner = "richardeoin";
repo = "ftx-prog";
rev = "v${finalAttrs.version}";
hash = "sha256-wBOzsJ1XIkswuwuCwGQk2Q+RUsGe5EOlbAhcf0R7rfc=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libftdi
libusb1
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv ftx_prog $out/bin
runHook postInstall
'';
meta = {
description = "Command-line alternative to the FTDI FTProg utility for FTDI's FT-X series";
mainProgram = "ftx_prog";
homepage = "https://github.com/richardeoin/ftx-prog";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.funkeleinhorn ];
};
})