git.iko.soy/typeable/blog-posts-ru
on main help sign in
11 lines 278 B history raw
1{ pkgs ? import <nixpkgs> {} }:
3derivation {
4 name = "hello-world";
5 builder = pkgs.writeShellScript "build-hello" ''
6 ${pkgs.coreutils}/bin/mkdir -p $out/bin
7 ${pkgs.gcc}/bin/gcc $src -o $out/bin/hello -O2
8 '';
9 src = ./hello.c;
10 system = builtins.currentSystem;