nixpkgs/pkgs/by-name/co/convbin/package.nix
Sam Connelly 7c66fb1ec5 migrate maintainership from luc65r to clevor
They said they haven't used Nix in a while and is not interested in
maintaining cemu-ti (presumably other packages too), so I asked to take
over his role. I removed luc65r from the meta.maintainers attribtes, and
adopted the packages I wanted to adopt. I chose to adopt the TI graphing
calculator-related packages as I am part of Cemetech.
2024-11-17 14:30:20 -05:00

48 lines
1.0 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "convbin";
version = "3.7";
src = fetchFromGitHub {
owner = "mateoconlechuga";
repo = pname;
rev = "v${version}";
sha256 = "sha256-zCRM62xwaPaN8+cg+CeaqK/9hKpZmSBBeUOQqAvQGYw=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace Makefile --replace "-flto" ""
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
checkPhase = ''
pushd test
patchShebangs test.sh
./test.sh
popd
'';
doCheck = true;
installPhase = ''
install -Dm755 bin/convbin $out/bin/convbin
'';
meta = with lib; {
description = "Converts files to other formats";
longDescription = ''
This program is used to convert files to other formats,
specifically for the TI84+CE and related calculators.
'';
homepage = "https://github.com/mateoconlechuga/convbin";
license = licenses.bsd3;
maintainers = with maintainers; [ clevor ];
platforms = platforms.all;
mainProgram = "convbin";
};
}