Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "bashcards"; 9 version = "0.1.3"; 10 11 src = fetchFromGitHub { 12 owner = "rpearce"; 13 repo = "bashcards"; 14 rev = "v${version}"; 15 sha256 = "1rpqrh0022sbrjvd55a0jvpdqhhka5msf8dsz6adbbmxy3xzgdid"; 16 }; 17 18 dontBuild = true; 19 installPhase = '' 20 mkdir -p $out/bin $out/share/man/man8 21 cp bashcards.8 $out/share/man/man8/ 22 cp bashcards $out/bin/ 23 ''; 24 25 meta = with lib; { 26 description = "Practice flashcards in bash"; 27 homepage = "https://github.com/rpearce/bashcards/"; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ rpearce ]; 30 platforms = platforms.all; 31 mainProgram = "bashcards"; 32 }; 33}