about summary refs log tree commit diff
path: root/pkgs/build-support
Commit message (Collapse)AuthorAge
* buildRustCrate: added some edge cases with binariesAndreas Rammhold2018-09-13
| | | | | | | This commit adds test based on real-world crates (brotli). There were a few more edge cases that were missing beforehand. Also it turned out that we can get rid of the `finalBins` list since that will now be handled during runtime.
* buildRustCrate: add test casesAndreas Rammhold2018-09-13
|
* buildRustCrate: binary heuristic should be able to treat spacesAndreas Rammhold2018-09-13
|
* buildRustCrate: extracted builder scripts into dedicated filesAndreas Rammhold2018-09-13
| | | | | | The build expression got quiet large over time and to make it a bit easier to grasp the different scripts involved in the build are now separated from the nix file.
* buildRustCrate: add heuristic to picking the right source filesAndreas Rammhold2018-09-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cargo has a few odd (old) ways of picking source files if the `bin.path` attribute isn't given in the Cargo.toml. This commit adds support for some of those. The previous behaviour always defaulted to `src/main.rs` which was not always the right choice. Since there is look-ahead into the unpacked sources before running the actual builder the path selection logic has to be embedded within the build script. `buildRustCrate` currently supports two ways of running building binaries when processing a crate: - Explicit definition of all the binaries (& optionally the paths to their respective `main.rs`) and, - if not binary was explictly configured all files matching the patterns `src/main.rs`, `src/bin/*.rs`. When the explicit list is given without path information paths are now being picked from a list of candidates. The first match wins. The order is the same as within the cargo compatibility code. If the crate does not provide any libraries the path `src/{bin_name}.rs` is also considered. All underscores within the binary names are translated into dashes (`-`) before the lookups are made. This seems to be a common convention.
* vmTools: update debian repositories to stable Release.xz urlsAndreas Rammhold2018-09-13
| | | | | | | Previously the Release.xz URL would show up with a new hash whenever debian releases an update. By using archive.org we should have a stable source for those. I wasn't able to find the equivalent in the debian world. Maybe they don't keep all the different Release files around..
* Merge branch 'no-toPath'Shea Levy2018-09-06
|\
| * treewide: Remove uses of builtins.toPath.Shea Levy2018-05-22
| | | | | | | | | | | | | | | | toPath has confusing semantics and is never necessary; it can always either just be omitted or replaced by pre-concatenating `/.`. It has been marked as "!!! obsolete?" for more than 10 years in a C++ comment, hopefully removing it will let us properly deprecate and, eventually, remove it.
* | skaware: switch from git repos to tarballsProfpatsch2018-09-06
| | | | | | | | It should be more performant this way.
* | skawarePackages: factor out the common partsProfpatsch2018-09-06
| | | | | | | | | | | | | | | | | | | | | | Introduce a `skawarePackages.buildPackage` function that contains the common setup, removing a lot of duplication. In particular, we require that the build directory has to be empty after the `fixupPhase`, to make sure every relevant file is moved to the outputs. A next step would be to deduplicate the `configureFlags` attributes and only require a `skawareInputs` field.
* | treewide: cleanup some references to bashJan Malakhovski2018-09-04
| |
* | lib: ensure directories of linkFarm links exist (#45628)Alyssa Ross2018-09-01
| | | | | | | | | | | | There's no reason `linkFarm` can't be used for symlinks in subdirectories, except that currently it doesn't ensure the directory of the link exists. This backwards-compatible change expands the utility of the function.
* | treewide: Remove usage of remaining redundant platform compatability stuffJohn Ericson2018-08-30
| | | | | | | | | | Want to get this out of here for 18.09, so it can be deprecated thereafter.
* | reewide: Purge all uses `stdenv.system` and top-level `system`John Ericson2018-08-30
| | | | | | | | It is deprecated and will be removed after 18.09.
* | Merge pull request #26416 from lverns/make-genericName-optionalSamuel Dionne-Riel2018-08-27
|\ \ | | | | | | make-desktopitem: make genericName optional
| * | make-desktopitem: make genericName optionalLaverne Schrock2017-06-05
| | |
* | | makeWrapper: document --set-defaultAlyssa Ross2018-08-24
| | |
* | | Merge branch 'master' into stagingVladimír Čunát2018-08-22
|\ \ \ | | | | | | | | | | | | Hydra: ?compare=1474932
| * | | fetchpatch: patchutils -> buildPackages.patchutilsvolth2018-08-21
| | | |
* | | | Revert "Merge pull request #44767 from obsidiansystems/wrapper-env-var-path"Matthew Bauer2018-08-22
| | | | | | | | | | | | | | | | | | | | This reverts commit 89efc27f571368b475ce87e71445be10a9d1121a, reversing changes made to d0f11020ca55dfe20ecad05005343e3a3e3cbd90.
* | | | Merge remote-tracking branch 'origin/master' into stagingMatthew Bauer2018-08-21
|\| | |
| * | | Merge branch 'staging-next'Vladimír Čunát2018-08-21
| |\ \ \ | | | | | | | | | | | | | | | Security fixes for a few packages are included.
| * | | | treewide: Purge `stdenv.platform` and top-level `platform`John Ericson2018-08-20
| | | | | | | | | | | | | | | | | | | | Progress towards #27069
* | | | | Merge pull request #45396 from dtzWill/fix/audit-tmpdir-quoteWill Dietz2018-08-21
|\ \ \ \ \ | | | | | | | | | | | | audit-tmpdir: fix processing of files with spaces, quote variables
| * | | | | audit-tmpdir: fix processing of files with spaces, quote variablesWill Dietz2018-08-20
| | |/ / / | |/| | |
* / | | | [RFC] ppc64le enablement (#45340)CrystalGamma2018-08-21
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ppc64le enablement * gcc, glibc: properly handle __float128 * lib/systems, stdenv: syntax cleanup * gcc7: remove ugly hack * gcc: add/update __float128 flags * stdenv: add another pair of quotes for consistency * gcc: move __float128 flag for ppc64le-glibc into common/platform-flags.nix
* | | | Merge pull request #44767 from obsidiansystems/wrapper-env-var-pathJohn Ericson2018-08-17
|\ \ \ \ | | | | | | | | | | {cc,bintools}-wrapper, ghc, libgcc: Define wrapper env vars as full paths
| * | | | bintools-wrapper: Define env vars with full pathJohn Ericson2018-08-08
| | | | |
| * | | | cc-wrapper: Define env vars with full pathJohn Ericson2018-08-06
| | | | |
* | | | | Merge branch 'staging-next' into stagingVladimír Čunát2018-08-17
|\ \ \ \ \ | | |/ / / | |/| | |
| * | | | Merge branch 'master' into staging-nextVladimír Čunát2018-08-17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Hydra: ?compare=1473892
| | * | | | carnix overrides: add gmp to rink-rs buildInputs & correct crateBinStewart Mackenzie2018-08-15
| | | | | |
| | * | | | Merge pull request #44981 from Ekleog/rust-patch-bisJörg Thalheim2018-08-14
| | |\ \ \ \ | | | | | | | | | | | | | | buildRustPackage: allow patches to fix Cargo.lock
| | | * | | | buildRustPackage: allow patches to fix Cargo.lockLéo Gaspard2018-08-13
| | | | | | |
| | * | | | | Revert "buildRustPackage: allow patches to fix Cargo.lock"Jörg Thalheim2018-08-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit b6e881ab72fbd0bb50b58668b457f7a79ceb8993. We need to fix checksums for this pull request first. Also see https://github.com/NixOS/nixpkgs/pull/44967
| | * | | | | Merge pull request #44967 from Ekleog/rust-patchJörg Thalheim2018-08-13
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | buildRustPackage: allow patches to fix Cargo.lock
| | | * | | | | buildRustPackage: allow patches to fix Cargo.lockLéo Gaspard2018-08-13
| | | |/ / / /
* | | | | | | Merge branch 'staging-next' into stagingVladimír Čunát2018-08-13
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Commits from master, conflict resolutions, etc.
| * | | | | | Merge branch 'master' into staging-nextVladimír Čunát2018-08-12
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Hydra: ?compare=1472947
| | * | | | | Merge pull request #44870 from symphorien/tests-evalxeji2018-08-10
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | Fix evaluation of two tests
| | | * | | | | nixos/tests/hocker-fetchdocker: fix evaluationSymphorien Gibol2018-08-10
| | | | |/ / / | | | |/| | | | | | | | | | | | | | | | | it still does not build
| | | * | | | Revert "Merge #44221: default for NIX_CXXSTDLIB_COMPILE"Vladimír Čunát2018-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 034c9816d5236e5c0131b715ee08fed56c89d4ad, reversing changes made to 5afe87ed7a75e99c3b68f255562dc82b3e3c7d4e. Huge rebuild, moving to staging.
| | | * | | | Use the default for NIX_CXXSTDLIB_COMPILE even if defined (but empty).Eduard-Mihai Burtescu2018-07-30
| | | | | | |
* | | | | | | treewide: random cleanupsJan Malakhovski2018-08-10
|/ / / / / /
* | | | | | bintools-wrapper: propagated-build-inputs -> propagated-user-env-packagesEelco Dolstra2018-08-09
| | | | | |
* | | | | | Revert "cc-wrapper: propagate man and info to propagated-build-inputs"Eelco Dolstra2018-08-09
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 28ad0703f3db92a3cbb8b1249101e0ff4e3616f6.
* | | | | | Revert "cc-wrapper, bintools-wrapper: simply symlink man and info outputs"Eelco Dolstra2018-08-09
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 02c09e01712ce0b61e5c8f7159047699a434f7fc.
* | | | | | cc-wrapper, bintools-wrapper: simply symlink man and info outputsJan Malakhovski2018-08-06
| | | | | | | | | | | | | | | | | | | | | | | | See discussion in #44516.
* | | | | | cc-wrapper: propagate man and info to propagated-build-inputsJan Malakhovski2018-08-05
|/ / / / /
* | | | | Re-Revert "Merge #44221: default for NIX_CXXSTDLIB_COMPILE"Vladimír Čunát2018-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit fd81a2ecb6b85594dc79ad53566c822849d4e47a. Moved from master to staging.