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, ... }:
{
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 [
(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
# 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