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,9 +1,7 @@
{ self, config, pkgs, lib, isUnstable, ... }:
{
nixpkgs.overlays = if isUnstable then [
(self: super: {
let
openssh = self: super: {
openssh = super.openssh.overrideAttrs (old: {
version = "9.1p1";
@ -12,7 +10,11 @@
hash = "sha256-GfhQCcfj4jeH8CNvuxV4OSq01L+fjsX+a8HNfov90og=";
};
});
})
};
in {
nixpkgs.overlays = if isUnstable then [
openssh
# https://github.com/NixOS/nixpkgs/pull/194589
(self: super: {
@ -60,18 +62,7 @@
});
})
] else
[
(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=";
};
});
})
];
[ openssh ];
}
# Example Python dep overlay