nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 919 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 installShellFiles, 6 gnumake, 7 pkg-config, 8 libusb1, 9 hidapi, 10}: 11stdenv.mkDerivation (finalAttrs: { 12 pname = "icesprog"; 13 version = "1.1b"; 14 15 src = fetchFromGitHub { 16 owner = "wuxx"; 17 repo = "icesugar"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-LGmT+GEZvo0oxmr2kMfSztutnguPpNt2QJfVyBJo82w="; 20 }; 21 22 sourceRoot = "${finalAttrs.src.name}/tools/src"; 23 strictDeps = true; 24 25 nativeBuildInputs = [ 26 gnumake 27 pkg-config 28 installShellFiles 29 ]; 30 31 buildInputs = [ 32 libusb1 33 hidapi 34 ]; 35 36 installPhase = '' 37 runHook preInstall 38 39 installBin icesprog 40 41 runHook postInstall 42 ''; 43 44 meta = { 45 description = "iCESugar FPGA flash utility"; 46 mainProgram = "icesprog"; 47 license = with lib.licenses; [ gpl2Only ]; 48 maintainers = with lib.maintainers; [ RossComputerGuy ]; 49 homepage = "https://github.com/wuxx/icesugar"; 50 }; 51})