Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 718 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 bison, 6 flex, 7}: 8 9stdenv.mkDerivation { 10 pname = "pcalc"; 11 version = "20181202"; 12 13 src = fetchFromGitHub { 14 owner = "vapier"; 15 repo = "pcalc"; 16 rev = "d93be9e19ecc0b2674cf00ec91cbb79d32ccb01d"; 17 sha256 = "sha256-m4xdsEJGKxLgp/d5ipxQ+cKG3z7rlvpPL6hELnDu6Hk="; 18 }; 19 20 makeFlags = [ "DESTDIR= BINDIR=$(out)/bin" ]; 21 nativeBuildInputs = [ 22 bison 23 flex 24 ]; 25 26 enableParallelBuilding = true; 27 28 meta = with lib; { 29 homepage = "https://vapier.github.io/pcalc/"; 30 description = "Programmer's calculator"; 31 mainProgram = "pcalc"; 32 license = licenses.gpl2Plus; 33 maintainers = with maintainers; [ ftrvxmtrx ]; 34 platforms = platforms.unix; 35 }; 36}