Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################################################################################################
- with import <apkgs>;
- {
- computeInst4 = {config, pkgs, ...}:
- {
- networking.firewall.allowedTCPPorts = [ 22 ];
- environment.systemPackages = [ foobar pkgs.git ];
- };
- }
- ##################################################################################################################
- { stdenv, fetchgitPrivate }:
- stdenv.mkDerivation rec {
- name = "foobar-${version}";
- version = "v0.1.0";
- src = fetchgitPrivate {
- url = "git@bitbucket.org:********/**********.git";
- rev = version;
- sha256 = "0c5snv7yjix4mryfjykh8ksda9yl8axcffjr773v8ijjwgrnqn1w";
- };
- phases = [ "myphase" ];
- myphase = ''
- mkdir -p $out/share/foobar-${version}/
- cp -r $src/* $out/share/foobar-${version}/
- '';
- meta = {
- description = "Foobar project";
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement