SHARE
TWEET

Untitled

a guest Feb 26th, 2020 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top