Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ build dist wheelhouse result *egg-info *.so *.c Loading cpprb.nix 0 → 100644 +36 −0 Original line number Diff line number Diff line { pkgs, lib, ps, readme, }: ps.buildPythonPackage { pname = "cpprb"; version = "11.0.0"; doCheck = false; pyproject = true; build-system = [ ps.setuptools ps.wheel ps.cython ps.numpy_2 ]; src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./pyproject.toml ./setup.py ./LICENSE ./MANIFEST.in ./src ]; }; patchPhase = '' cp ${readme}/README.md ./README.md ''; } flake.lock 0 → 100644 +61 −0 Original line number Diff line number Diff line { "nodes": { "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "nixpkgs": { "locked": { "lastModified": 1733935885, "narHash": "sha256-xyiHLs6KJ1fxeGmcCxKjJE4yJknVJxbC8Y/ZRYyC8WE=", "owner": "NixOS", "repo": "nixpkgs", "rev": "5a48e3c2e435e95103d56590188cfed7b70e108c", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } }, "root": { "inputs": { "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root", "version": 7 } flake.nix 0 → 100644 +56 −0 Original line number Diff line number Diff line { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; lib = nixpkgs.lib; in { packages = rec { readme = pkgs.stdenv.mkDerivation { name = "cpprb-readme"; src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./README.org ./LICENSE ]; }; nativeBuildInputs = [ pkgs.emacs ]; buildPhase = '' emacs --batch README.org --eval "(org-md-export-to-markdown)" ''; installPhase = '' mkdir -p $out cp ./README.md $out/README.md ''; }; python-311 = pkgs.callPackage ./cpprb.nix { inherit pkgs; inherit lib; ps = pkgs.python311Packages; readme = readme; }; python-312 = pkgs.callPackage ./cpprb.nix { inherit pkgs; inherit lib; ps = pkgs.python312Packages; readme = readme; }; }; } ); } Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ build dist wheelhouse result *egg-info *.so *.c Loading
cpprb.nix 0 → 100644 +36 −0 Original line number Diff line number Diff line { pkgs, lib, ps, readme, }: ps.buildPythonPackage { pname = "cpprb"; version = "11.0.0"; doCheck = false; pyproject = true; build-system = [ ps.setuptools ps.wheel ps.cython ps.numpy_2 ]; src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./pyproject.toml ./setup.py ./LICENSE ./MANIFEST.in ./src ]; }; patchPhase = '' cp ${readme}/README.md ./README.md ''; }
flake.lock 0 → 100644 +61 −0 Original line number Diff line number Diff line { "nodes": { "flake-utils": { "inputs": { "systems": "systems" }, "locked": { "lastModified": 1731533236, "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", "owner": "numtide", "repo": "flake-utils", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", "type": "github" }, "original": { "owner": "numtide", "repo": "flake-utils", "type": "github" } }, "nixpkgs": { "locked": { "lastModified": 1733935885, "narHash": "sha256-xyiHLs6KJ1fxeGmcCxKjJE4yJknVJxbC8Y/ZRYyC8WE=", "owner": "NixOS", "repo": "nixpkgs", "rev": "5a48e3c2e435e95103d56590188cfed7b70e108c", "type": "github" }, "original": { "owner": "NixOS", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" } }, "root": { "inputs": { "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } }, "systems": { "locked": { "lastModified": 1681028828, "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", "repo": "default", "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", "repo": "default", "type": "github" } } }, "root": "root", "version": 7 }
flake.nix 0 → 100644 +56 −0 Original line number Diff line number Diff line { inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; lib = nixpkgs.lib; in { packages = rec { readme = pkgs.stdenv.mkDerivation { name = "cpprb-readme"; src = lib.fileset.toSource { root = ./.; fileset = lib.fileset.unions [ ./README.org ./LICENSE ]; }; nativeBuildInputs = [ pkgs.emacs ]; buildPhase = '' emacs --batch README.org --eval "(org-md-export-to-markdown)" ''; installPhase = '' mkdir -p $out cp ./README.md $out/README.md ''; }; python-311 = pkgs.callPackage ./cpprb.nix { inherit pkgs; inherit lib; ps = pkgs.python311Packages; readme = readme; }; python-312 = pkgs.callPackage ./cpprb.nix { inherit pkgs; inherit lib; ps = pkgs.python312Packages; readme = readme; }; }; } ); }