Advertisement
Guest User

Untitled

a guest
Apr 6th, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. ##################################################################################################################
  2.  
  3. with import <apkgs>;
  4.  
  5. {
  6. computeInst4 = {config, pkgs, ...}:
  7. {
  8. networking.firewall.allowedTCPPorts = [ 22 ];
  9. environment.systemPackages = [ foobar pkgs.git ];
  10. };
  11. }
  12.  
  13. ##################################################################################################################
  14.  
  15. { stdenv, fetchgitPrivate }:
  16.  
  17. stdenv.mkDerivation rec {
  18. name = "foobar-${version}";
  19. version = "v0.1.0";
  20.  
  21. src = fetchgitPrivate {
  22. url = "git@bitbucket.org:********/**********.git";
  23. rev = version;
  24. sha256 = "0c5snv7yjix4mryfjykh8ksda9yl8axcffjr773v8ijjwgrnqn1w";
  25. };
  26.  
  27. phases = [ "myphase" ];
  28.  
  29. myphase = ''
  30. mkdir -p $out/share/foobar-${version}/
  31. cp -r $src/* $out/share/foobar-${version}/
  32. '';
  33.  
  34. meta = {
  35. description = "Foobar project";
  36. };
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement