-
Notifications
You must be signed in to change notification settings - Fork 2
/
default.nix
28 lines (24 loc) · 1.27 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "iyte-ee103";
src = ./.;
buildPhase = "make";
installPhase = ''
mkdir -p $out/bin
mkdir $out/bin/1-Beginner_Projects $out/bin/2-Intermediate_Projects $out/bin/3-Further_Projects
cp bin/1-Beginner_Projects/ascii_printer $out/bin/1-Beginner_Projects
cp bin/1-Beginner_Projects/chess_board $out/bin/1-Beginner_Projects
cp bin/1-Beginner_Projects/fibonacci $out/bin/1-Beginner_Projects
cp bin/1-Beginner_Projects/furkanselek_fibonacci $out/bin/1-Beginner_Projects
cp bin/1-Beginner_Projects/guess_the_number $out/bin/1-Beginner_Projects
cp bin/2-Intermediate_Projects/one $out/bin/2-Intermediate_Projects
cp bin/2-Intermediate_Projects/two $out/bin/2-Intermediate_Projects
cp bin/2-Intermediate_Projects/three $out/bin/2-Intermediate_Projects
cp bin/2-Intermediate_Projects/four $out/bin/2-Intermediate_Projects
cp bin/2-Intermediate_Projects/five $out/bin/2-Intermediate_Projects
cp bin/2-Intermediate_Projects/six $out/bin/2-Intermediate_Projects
cp bin/3-Further_Projects/binary_search $out/bin/3-Further_Projects
cp bin/3-Further_Projects/single_loop_left_pyramid $out/bin/3-Further_Projects
cp bin/3-Further_Projects/time_example $out/bin/3-Further_Projects
'';
}