Skip to content

Instantly share code, notes, and snippets.

@betaboon
Last active April 3, 2019 10:17
Show Gist options
  • Save betaboon/89e82c1cc477c5601a0bfa81a1c26c5a to your computer and use it in GitHub Desktop.
Save betaboon/89e82c1cc477c5601a0bfa81a1c26c5a to your computer and use it in GitHub Desktop.
nix-overlay
{ config, pkgs, ... }:
{
nixpkgs.overlays = [
(import ./my-overlay.nix)
];
environment.systemPackages = [
myPackage
];
}
self: super:
{
myPackage = super.callPackage ./my-package.nix;
}
{ stdenv, ... }:
stdenv.mkDerivation rec {
name = "my-package-${version}";
version = "1.0";
src = /path/to/my/packages/source;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment