Skip to content

Instantly share code, notes, and snippets.

@LaloHao
Created October 17, 2020 22:00
Show Gist options
  • Save LaloHao/cf8ecf090eb8a5d564d73481e3025e52 to your computer and use it in GitHub Desktop.
Save LaloHao/cf8ecf090eb8a5d564d73481e3025e52 to your computer and use it in GitHub Desktop.
Pic development
let
pkgs = import <nixpkgs> {
config = {
allowUnfree = true;
};
};
inherit (pkgs) sdcc gputils automake;
in
sdcc.overrideAttrs(o: rec {
inherit gputils;
buildInputs = o.buildInputs or [] ++ [ automake gputils ];
propagatedBuildInputs = o.propagatedBuildInputs or [] ++ [ gputils ];
configureFlags = map (f: "--enable-${f}-port") [ "pic14" "pic16" ];
})
let
pkgs = import <nixpkgs> {
config = {
allowUnfree = true;
};
};
inherit (pkgs) pk2cmd;
in pk2cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment