overlays: use var for openssh

This commit is contained in:
Aaron Bieber 2022-10-05 14:08:12 -06:00
parent b5cbc4e9fa
commit 6ca9676d36
No known key found for this signature in database

View File

@ -1,18 +1,20 @@
{ self, config, pkgs, lib, isUnstable, ... }: { self, config, pkgs, lib, isUnstable, ... }:
{ let
openssh = self: super: {
openssh = super.openssh.overrideAttrs (old: {
version = "9.1p1";
src = super.fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-9.1p1.tar.gz";
hash = "sha256-GfhQCcfj4jeH8CNvuxV4OSq01L+fjsX+a8HNfov90og=";
};
});
};
in {
nixpkgs.overlays = if isUnstable then [ nixpkgs.overlays = if isUnstable then [
(self: super: { openssh
openssh = super.openssh.overrideAttrs (old: {
version = "9.1p1";
src = super.fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-9.1p1.tar.gz";
hash = "sha256-GfhQCcfj4jeH8CNvuxV4OSq01L+fjsX+a8HNfov90og=";
};
});
})
# https://github.com/NixOS/nixpkgs/pull/194589 # https://github.com/NixOS/nixpkgs/pull/194589
(self: super: { (self: super: {
@ -60,18 +62,7 @@
}); });
}) })
] else ] else
[ [ openssh ];
(self: super: {
openssh = super.openssh.overrideAttrs (old: {
version = "9.1p1";
src = super.fetchurl {
url = "mirror://openbsd/OpenSSH/portable/openssh-9.1p1.tar.gz";
hash = "sha256-GfhQCcfj4jeH8CNvuxV4OSq01L+fjsX+a8HNfov90og=";
};
});
})
];
} }
# Example Python dep overlay # Example Python dep overlay