Created
March 19, 2019 15:22
-
-
Save haslersn/2536ee7f9f4fb114dbd99e646fa90695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ ...}: | |
{ | |
#... | |
nixpkgs.overlays = [ | |
(import ./overlay.nix) | |
]; | |
#... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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