A high performance Protein Databank parser written in Zig.
0

Configure Feed

Select the types of activity you want to include in your feed.

ci: initial nix flake

Ethan Holz (Jan 5, 2024, 1:00 AM -0700) f3be20ae 16e92249

+187
+136
flake.lock
··· 1 + { 2 + "nodes": { 3 + "flake-compat": { 4 + "flake": false, 5 + "locked": { 6 + "lastModified": 1673956053, 7 + "narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=", 8 + "owner": "edolstra", 9 + "repo": "flake-compat", 10 + "rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9", 11 + "type": "github" 12 + }, 13 + "original": { 14 + "owner": "edolstra", 15 + "repo": "flake-compat", 16 + "type": "github" 17 + } 18 + }, 19 + "flake-utils": { 20 + "inputs": { 21 + "systems": "systems" 22 + }, 23 + "locked": { 24 + "lastModified": 1701680307, 25 + "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", 26 + "owner": "numtide", 27 + "repo": "flake-utils", 28 + "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", 29 + "type": "github" 30 + }, 31 + "original": { 32 + "owner": "numtide", 33 + "repo": "flake-utils", 34 + "type": "github" 35 + } 36 + }, 37 + "flake-utils_2": { 38 + "locked": { 39 + "lastModified": 1659877975, 40 + "narHash": "sha256-zllb8aq3YO3h8B/U0/J1WBgAL8EX5yWf5pMj3G0NAmc=", 41 + "owner": "numtide", 42 + "repo": "flake-utils", 43 + "rev": "c0e246b9b83f637f4681389ecabcb2681b4f3af0", 44 + "type": "github" 45 + }, 46 + "original": { 47 + "owner": "numtide", 48 + "repo": "flake-utils", 49 + "type": "github" 50 + } 51 + }, 52 + "gitignore": { 53 + "inputs": { 54 + "nixpkgs": [ 55 + "nixpkgs" 56 + ] 57 + }, 58 + "locked": { 59 + "lastModified": 1703887061, 60 + "narHash": "sha256-gGPa9qWNc6eCXT/+Z5/zMkyYOuRZqeFZBDbopNZQkuY=", 61 + "owner": "hercules-ci", 62 + "repo": "gitignore.nix", 63 + "rev": "43e1aa1308018f37118e34d3a9cb4f5e75dc11d5", 64 + "type": "github" 65 + }, 66 + "original": { 67 + "owner": "hercules-ci", 68 + "repo": "gitignore.nix", 69 + "type": "github" 70 + } 71 + }, 72 + "nixpkgs": { 73 + "locked": { 74 + "lastModified": 1704161960, 75 + "narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=", 76 + "owner": "NixOS", 77 + "repo": "nixpkgs", 78 + "rev": "63143ac2c9186be6d9da6035fa22620018c85932", 79 + "type": "github" 80 + }, 81 + "original": { 82 + "owner": "NixOS", 83 + "ref": "nixpkgs-unstable", 84 + "repo": "nixpkgs", 85 + "type": "github" 86 + } 87 + }, 88 + "root": { 89 + "inputs": { 90 + "flake-utils": "flake-utils", 91 + "gitignore": "gitignore", 92 + "nixpkgs": "nixpkgs", 93 + "zig-overlay": "zig-overlay" 94 + } 95 + }, 96 + "systems": { 97 + "locked": { 98 + "lastModified": 1681028828, 99 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 100 + "owner": "nix-systems", 101 + "repo": "default", 102 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 103 + "type": "github" 104 + }, 105 + "original": { 106 + "owner": "nix-systems", 107 + "repo": "default", 108 + "type": "github" 109 + } 110 + }, 111 + "zig-overlay": { 112 + "inputs": { 113 + "flake-compat": "flake-compat", 114 + "flake-utils": "flake-utils_2", 115 + "nixpkgs": [ 116 + "nixpkgs" 117 + ] 118 + }, 119 + "locked": { 120 + "lastModified": 1704414187, 121 + "narHash": "sha256-augAzcGHaeuWknIsYSua1oJoCE0Mh12BRm3i4ZONcpc=", 122 + "owner": "mitchellh", 123 + "repo": "zig-overlay", 124 + "rev": "aeb1f52d1ca19d836f0ef4a7f3f25deec661f75f", 125 + "type": "github" 126 + }, 127 + "original": { 128 + "owner": "mitchellh", 129 + "repo": "zig-overlay", 130 + "type": "github" 131 + } 132 + } 133 + }, 134 + "root": "root", 135 + "version": 7 136 + }
+51
flake.nix
··· 1 + { 2 + inputs = 3 + { 4 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 5 + 6 + zig-overlay.url = "github:mitchellh/zig-overlay"; 7 + zig-overlay.inputs.nixpkgs.follows = "nixpkgs"; 8 + 9 + gitignore.url = "github:hercules-ci/gitignore.nix"; 10 + gitignore.inputs.nixpkgs.follows = "nixpkgs"; 11 + 12 + flake-utils.url = "github:numtide/flake-utils"; 13 + }; 14 + 15 + outputs = inputs: 16 + let 17 + inherit (inputs) nixpkgs zig-overlay gitignore flake-utils; 18 + systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 19 + inherit (gitignore.lib) gitignoreSource; 20 + in 21 + flake-utils.lib.eachSystem systems (system: 22 + let 23 + pkgs = nixpkgs.legacyPackages.${system}; 24 + zig = zig-overlay.packages.${system}.master-2023-12-31; 25 + in 26 + rec { 27 + formatter = nixpkgs.legacyPackages.${system}.nixpkgs-fmt; 28 + packages.default = packages.sonic-pdb-parser; 29 + packages.sonic-pdb-parser = pkgs.stdenvNoCC.mkDerivation { 30 + name = "sonic-pdb-parser"; 31 + version = "master"; 32 + src = gitignoreSource ./.; 33 + nativeBuildInputs = [ zig ]; 34 + dontConfigure = true; 35 + dontInstall = true; 36 + doCheck = true; 37 + buildPhase = '' 38 + mkdir -p .cache 39 + zig build install --cache-dir $(pwd)/zig-cache --global-cache-dir $(pwd)/.cache --prefix $out -Doptimize=ReleaseFast 40 + ''; 41 + checkPhase = '' 42 + zig build test --cache-dir $(pwd)/zig-cache --global-cache-dir $(pwd)/.cache 43 + ''; 44 + }; 45 + devShell = pkgs.mkShell { 46 + buildInputs = [ packages.sonic-pdb-parser.nativeBuildInputs ]; 47 + }; 48 + 49 + } 50 + ); 51 + }