Skip to content

Instantly share code, notes, and snippets.

@haslersn
Created March 19, 2019 15:22
Show Gist options
  • Save haslersn/2536ee7f9f4fb114dbd99e646fa90695 to your computer and use it in GitHub Desktop.
Save haslersn/2536ee7f9f4fb114dbd99e646fa90695 to your computer and use it in GitHub Desktop.
{ ...}:
{
#...
nixpkgs.overlays = [
(import ./overlay.nix)
];
#...
}
self: super: {
# Desktop item that runs `ssh-add`
ssh-add-desktop = super.makeDesktopItem {
name = "ssh-add";
exec = "${super.openssh}/bin/ssh-add";
comment = "Add identities to the SSH authentication agent";
desktopName = "Add SSH Identities";
genericName = "SSH";
categories = "Application;System;";
};
# Packaging nixos-shell
nixos-shell = super.stdenv.mkDerivation {
name = "nixos-shell";
src = super.fetchFromGitHub {
owner = "wavewave";
repo = "nixos-shell";
rev = "1e896190f7971e963efed6c3db45c6783dc9032b";
fetchSubmodules = true;
sha256 = "1sjp9vawybiqr4pa6aryqgz17vixnywml17x4maiirw11v4marhb";
};
buildInputs = with super; [ go ];
phases = [ "buildPhase" ];
buildPhase = ''
mkdir -p $out/bin
GOPATH=$src go build -o $out/bin/nixos-shell nixos-shell
'';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment