perl cgi script for amino acids.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
758 B

2 years ago
  1. {
  2. description = "Juni's Vanilla Flake Template";
  3. inputs = {
  4. nixpkgs.url = "github:nixos/nixpkgs/nixos-22.05";
  5. flake-utils.url = "github:numtide/flake-utils";
  6. };
  7. outputs = { self, nixpkgs, flake-utils }:
  8. with flake-utils.lib;
  9. eachDefaultSystem (system:
  10. let
  11. pkgs = import nixpkgs { inherit system; };
  12. version = "0.1.0";
  13. name = "package name";
  14. server = pkgs.writeShellScriptBin "server" ''
  15. lighttpd -D -f ./lighttpd.conf
  16. '';
  17. in {
  18. devShell = pkgs.mkShell { buildInputs = with pkgs; [ lighttpd perl server ]; };
  19. defaultPackage = pkgs.stdenv.mkDerivation { inherit name version; };
  20. formatter = nixpkgs.legacyPackages."${system}".nixfmt;
  21. });
  22. }