Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 763 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 readline, 6 bc, 7 python3Packages, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "bcal"; 12 version = "2.4"; 13 14 src = fetchFromGitHub { 15 owner = "jarun"; 16 repo = "bcal"; 17 rev = "v${version}"; 18 sha256 = "sha256-PleWU2yyJzkUAZEvEYoCGdpEXqOgRvZK9zXTYrxRtQU="; 19 }; 20 21 buildInputs = [ readline ]; 22 23 installFlags = [ "PREFIX=$(out)" ]; 24 25 doCheck = true; 26 27 nativeCheckInputs = [ 28 bc 29 python3Packages.pytestCheckHook 30 ]; 31 32 enabledTestPaths = [ "test.py" ]; 33 34 meta = with lib; { 35 description = "Storage conversion and expression calculator"; 36 mainProgram = "bcal"; 37 homepage = "https://github.com/jarun/bcal"; 38 license = licenses.gpl3Only; 39 platforms = platforms.unix; 40 maintainers = [ ]; 41 }; 42}