Skip to content

Instantly share code, notes, and snippets.

@kalbasit
Created July 19, 2018 06:42
Show Gist options
  • Save kalbasit/ec50eb208b115af0894e2bbbf95b05b5 to your computer and use it in GitHub Desktop.
Save kalbasit/ec50eb208b115af0894e2bbbf95b05b5 to your computer and use it in GitHub Desktop.
self: super:
let
hostPkgs = import <nixpkgs> {};
# Look here for information about how to generate `nixpkgs-version.json`.
# → https://nixos.wiki/wiki/FAQ/Pinning_Nixpkgs
pinnedVersion = hostPkgs.lib.importJSON ./nixpkgs-version.json;
pinnedPkgs = hostPkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs-channels";
inherit (pinnedVersion) rev sha256;
};
in
{
haskell.packages.greenclip = pinnedPkgs.haskell.packages.greenclip;
}
@kalbasit
Copy link
Author

getting an error:

$ nix-build '<nixpkgs>' -A haskellPackages.greenclip
error: attribute 'ghc843' missing, at /home/kalbasit/.config/nixpkgs/external/nixpkgs/pkgs/top-level/all-packages.nix:6561:21
(use '--show-trace' to show detailed location information)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment