Skip to content

Instantly share code, notes, and snippets.

@expipiplus1
Created January 22, 2017 16:32
Show Gist options
  • Save expipiplus1/72b6d59957e6e0b73a55326492072096 to your computer and use it in GitHub Desktop.
Save expipiplus1/72b6d59957e6e0b73a55326492072096 to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
d = {stdenv}:
stdenv.mkDerivation {
name = import (pkgs.runCommand "hello-output" {} ''
${pkgs.hello}/bin/hello -g '"d-name"'> $out
'');
buildCommand = "touch $out";
};
in pkgs.callPackage d {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment