Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 769 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 guile, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "fetch-scm"; 10 version = "0.1.6"; 11 12 src = fetchFromGitHub { 13 owner = "KikyTokamuro"; 14 repo = "fetch.scm"; 15 rev = "v${version}"; 16 sha256 = "sha256-WdYi8EVxQ6xPtld8JyZlUmgpxroevBehtkRANovMh2E="; 17 }; 18 19 dontBuild = true; 20 21 buildInputs = [ guile ]; 22 23 installPhase = '' 24 runHook preInstall 25 install -Dm555 fetch.scm $out/bin/fetch-scm 26 runHook postInstall 27 ''; 28 29 meta = with lib; { 30 description = "System information fetcher written in GNU Guile Scheme"; 31 homepage = "https://github.com/KikyTokamuro/fetch.scm"; 32 license = licenses.mit; 33 platforms = platforms.all; 34 maintainers = with maintainers; [ vel ]; 35 mainProgram = "fetch-scm"; 36 }; 37}