Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with import <nixpkgs> {};
- stdenv.mkDerivation rec {
- name = "project-name";
- somefile = builtins.fetchurl {
- url = "nixos.org";
- sha256 = "0r5f27f7hm3lhp8s8zw50fzz1hrq54jhhy6agp0nxsrr6sv67aa6";
- };
- src = ./.;
- installPhase = ''
- mkdir $out
- cp ${somefile} $out/somefile
- '';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement