|
33 | 33 | src = lib.fileset.toSource { |
34 | 34 | root = ./.; |
35 | 35 | fileset = lib.fileset.unions [ |
| 36 | + ./CMakeLists.txt |
36 | 37 | ./COPYING |
37 | 38 | ./Makefile.am |
38 | 39 | ./README.md |
|
49 | 50 |
|
50 | 51 | patchelfFor = |
51 | 52 | pkgs: |
52 | | - pkgs.callPackage ./package.nix { |
| 53 | + pkgs.callPackage ./package-autoconf.nix { |
53 | 54 | inherit version src; |
54 | 55 | }; |
55 | 56 |
|
|
117 | 118 | }) |
118 | 119 | ); |
119 | 120 |
|
| 121 | + build-cmake = forAllSystems (system: self.packages.${system}.patchelf-cmake); |
| 122 | + |
120 | 123 | # x86_64-linux seems to be only working clangStdenv at the moment |
121 | 124 | build-sanitized-clang = lib.genAttrs [ "x86_64-linux" ] ( |
122 | 125 | system: |
|
134 | 137 | self.hydraJobs.tarball |
135 | 138 | self.hydraJobs.build.x86_64-linux |
136 | 139 | self.hydraJobs.build.i686-linux |
| 140 | + self.hydraJobs.build-cmake.x86_64-linux |
137 | 141 | # FIXME: add aarch64 emulation to our github action... |
138 | 142 | #self.hydraJobs.build.aarch64-linux |
139 | 143 | self.hydraJobs.build-sanitized.x86_64-linux |
|
172 | 176 | }"; |
173 | 177 | }; |
174 | 178 | nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ |
| 179 | + #pkgs.buildPackages.cmake |
| 180 | + #pkgs.buildPackages.ninja |
175 | 181 | modular.pre-commit.settings.package |
176 | | - (pkgs.writeScriptBin "pre-commit-hooks-install" modular.pre-commit.settings.installationScript) |
| 182 | + (pkgs.buildPackages.writeScriptBin "pre-commit-hooks-install" modular.pre-commit.settings.installationScript) |
177 | 183 | ]; |
178 | 184 | } |
179 | 185 | ); |
|
194 | 200 |
|
195 | 201 | patchelfForWindowsStatic = |
196 | 202 | pkgs: |
197 | | - (pkgs.callPackage ./package.nix { |
| 203 | + (pkgs.callPackage ./package-autoconf.nix { |
198 | 204 | inherit version src; |
199 | 205 | # On windows we use win32 threads to get a static binary, |
200 | 206 | # otherwise `-static` below doesn't work. |
|
217 | 223 | patchelf = patchelfFor pkgs; |
218 | 224 | default = self.packages.${system}.patchelf; |
219 | 225 |
|
| 226 | + patchelf-cmake = pkgs.callPackage ./package-cmake.nix { |
| 227 | + inherit version src; |
| 228 | + }; |
| 229 | + |
220 | 230 | # This is a good test to see if packages can be cross-compiled. It also |
221 | 231 | # tests if our testsuite uses target-prefixed executable names. |
222 | 232 | patchelf-musl-cross = patchelfFor pkgs.pkgsCross.musl64; |
|
0 commit comments