packages: update package without using unstable

This commit is contained in:
Michele Guerini Rocco 2022-09-24 23:56:10 +02:00
parent 97f7e0361d
commit 167e4e9a5b
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -1,9 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
let
unstable = import <nixos-unstable> { };
in
{ {
nixpkgs.overlays = lib.singleton nixpkgs.overlays = lib.singleton
(self: super: (self: super:
@ -12,10 +8,11 @@ in
roomId = "!FsUSHSNMPMVTFFcvJo:maxwell.ydns.eu"; roomId = "!FsUSHSNMPMVTFFcvJo:maxwell.ydns.eu";
authToken = config.secrets.passwords.matrix; authToken = config.secrets.passwords.matrix;
}; };
haskellPackages = super.haskellPackages.override haskellPackages = super.haskellPackages.extend (hself: hsuper:
{ overrides = hself: hsuper: { namecoin-update = hself.callCabal2nix "namecoin-update" (builtins.fetchTarball {
{ inherit (unstable.haskellPackages) namecoin-update; }; url = "https://hackage.haskell.org/package/namecoin-update-0.2.3.0/namecoin-update-0.2.3.0.tar.gz";
}; }) {};
});
}); });
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [