Hello Nix wizards
I would like to downgrade CopyQ from the unstable channel that my NixOS is on to the version of CopyQ from the stable channel.
So far I did put this in to my configuration.nix:
nixpkgs.overlays = [
(self: super: {
myCopyQ = super.stdenv.mkDerivation {
pname = "CopyQ";
version = "6.3.2";
src = super.fetchFromGitHub {
owner = "hluk";
repo = "CopyQ";
rev = "v6.3.2";
hash = "sha256-Ge/TD9Llq4YTAqaL9LBEsgNI9qrf2jLDt7q2ZTI9rmE=";
};
nativeBuildInputs = [ super.cmake super.extra-cmake-modules ];
buildInputs = [
super.qtbase
super.qtscript
super.libXfixes
super.libXtst
super.qtx11extras
super.knotifications
super.qtwayland
super.wayland
];
postPatch = ''
substituteInPlace shared/com.github.hluk.copyq.desktop.in \
--replace copyq "$out/bin/copyq"
'';
meta = with super.lib; {
homepage = "https://hluk.github.io/CopyQ";
description = "Clipboard Manager with Advanced Features";
license = licenses.gpl3Only;
maintainers = with maintainers; [ artturin ];
platforms = platforms.linux;
};
};
})
];
But it doesn’t seem to change the version of CopyQ.
Would be lovely if someone could help me out, as I never messed with overlays before …