Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 606 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "beats"; 9 version = "1.1"; 10 11 src = fetchFromGitHub { 12 owner = "j0hax"; 13 repo = "beats"; 14 rev = "v${version}"; 15 sha256 = "1rdvsqrjpily74y8vwch711401585xckb4p41cfwrmj6vf44jhif"; 16 }; 17 18 makeFlags = [ 19 "PREFIX=$(out)" 20 "CC=cc" 21 ]; 22 23 meta = with lib; { 24 homepage = "https://github.com/j0hax/beats"; 25 license = licenses.gpl3Only; 26 description = "Swatch Internet Time implemented as a C program"; 27 platforms = platforms.all; 28 maintainers = [ maintainers.j0hax ]; 29 mainProgram = "beats"; 30 }; 31}