Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "ecm-tools"; 9 version = "1.0.3"; 10 11 src = fetchFromGitHub { 12 owner = "alucryd"; 13 repo = "ecm-tools"; 14 rev = "v${finalAttrs.version}"; 15 hash = "sha256-DCxrSTUO+e350zI10D8vpIswxqdfAyQfnY4iz17pfuc="; 16 }; 17 18 dontConfigure = true; 19 20 installPhase = '' 21 runHook preInstall 22 23 install --directory --mode=755 $out/bin 24 install --mode=755 bin2ecm $out/bin 25 pushd $out/bin 26 ln -s bin2ecm ecm2bin 27 popd 28 29 runHook postInstall 30 ''; 31 32 meta = { 33 description = "Utility to uncompress ECM files to BIN CD format"; 34 homepage = "https://github.com/alucryd/ecm-tools"; 35 license = lib.licenses.gpl3Plus; 36 mainProgram = "bin2ecm"; 37 maintainers = with lib.maintainers; [ ]; 38 platforms = lib.platforms.all; 39 }; 40})