Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 0a51b5b12ae5
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 7a1632359b62
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Aug 25, 2019

  1. buildRustPackage: add cargoCopyLockfile option

    When enabled, it allows to check whenever the cargoSha256 needs updating
    or not. This technique depends on IFS and is not allowed inside of
    nixpkgs but it's handy to have available. Eg:
    
        let
          pkg = buildRustPackage { ... };
          srcContent = builtins.readFile "${pkg.src}/Cargo.lock";
          depsContent = builtins.readFile "${pkgs.cargoDeps}/Cargo.lock";
        in
          # this will fail when the cargoSha256 gets out of sync
          assert (srcContent == depsContent);
          pkg
    zimbatm committed Aug 25, 2019
    Copy the full SHA
    823ad89 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5256d6d View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    7a16323 View commit details
    Browse the repository at this point in the history