Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. with import <nixpkgs> {};
  2.  
  3. stdenv.mkDerivation rec {
  4. name = "project-name";
  5.  
  6. somefile = builtins.fetchurl {
  7. url = "nixos.org";
  8. sha256 = "0r5f27f7hm3lhp8s8zw50fzz1hrq54jhhy6agp0nxsrr6sv67aa6";
  9. };
  10.  
  11. src = ./.;
  12.  
  13. installPhase = ''
  14. mkdir $out
  15. cp ${somefile} $out/somefile
  16. '';
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement