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/infra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2ca00527825d
Choose a base ref
...
head repository: NixOS/infra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 369493ccc11a
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 29, 2018

  1. Copy the full SHA
    369493c View commit details
Showing with 15 additions and 2 deletions.
  1. +15 −2 delft/overlay.nix
17 changes: 15 additions & 2 deletions delft/overlay.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
self: super:
{
nixUnstable = super.nixUnstable.overrideAttrs (oldatrs: {
let
upgrade = package: overrides:
let
upgraded = package.overrideAttrs overrides;
upgradedVersion = (builtins.parseDrvName upgraded.name).version;
originalVersion =(builtins.parseDrvName package.name).version;

isDowngrade = (builtins.compareVersions upgradedVersion originalVersion) == -1;

warn = builtins.trace
"Warning: ${package.name} downgraded by overlay with ${upgraded.name}.";
pass = x: x;
in (if isDowngrade then warn else pass) upgraded;
in {
nixUnstable = upgrade super.nixUnstable (oldAttrs: {
name = "nix-2.2pre6526_9f99d624";
src = self.fetchFromGitHub {
owner = "NixOS";