Skip to content

Instantly share code, notes, and snippets.

@mt-caret
Created June 14, 2020 11:57
Show Gist options
  • Save mt-caret/88d551213c25583b4edbc4fb17d861f8 to your computer and use it in GitHub Desktop.
Save mt-caret/88d551213c25583b4edbc4fb17d861f8 to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, cmake, pkg-config, git, bzip2, libusb1, libzip, openssl }:
stdenv.mkDerivation rec {
pname = "uuu";
version = "1.3.191";
src = fetchFromGitHub {
owner = "NXPMicro";
repo = "mfgtools";
rev = "uuu_${version}";
sha256 = "196blmd7nf5kamvay22rvnkds2v6h7ab8lyl10dknxgy8i8siqq9";
};
postPatch = ''
echo ${pname}_${version} > .tarball-version
'';
nativeBuildInputs = [ cmake pkg-config git ];
buildInputs = [ bzip2 libusb1 libzip openssl ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment