Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 gprolog, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "profetch"; 10 version = "0.1.7"; 11 12 src = fetchFromGitHub { 13 owner = "RustemB"; 14 repo = "profetch"; 15 rev = "v${version}"; 16 sha256 = "sha256-JsjpPUXMN0jytRS4yzSjrseqHiEQ+YinklG+tIIy+Zo="; 17 }; 18 19 nativeBuildInputs = [ gprolog ]; 20 21 buildPhase = '' 22 runHook preBuild 23 gplc profetch.pl --no-top-level --no-debugger \ 24 --no-fd-lib --no-fd-lib-warn \ 25 --min-size -o profetch 26 runHook postBuild 27 ''; 28 29 installPhase = '' 30 runHook preInstall 31 install -Dm755 -t $out/bin profetch 32 runHook postInstall 33 ''; 34 35 meta = with lib; { 36 description = "System Information Fetcher Written in GNU/Prolog"; 37 homepage = "https://github.com/RustemB/profetch"; 38 license = licenses.gpl3Only; 39 platforms = platforms.all; 40 maintainers = [ maintainers.vel ]; 41 mainProgram = "profetch"; 42 }; 43}