refactor: reorganize directory structure
This commit is contained in:
parent
433a4f2c0d
commit
d4913ac8df
5 changed files with 5 additions and 5 deletions
|
|
@ -1,22 +0,0 @@
|
|||
let
|
||||
basic-c = name: { stdenv }:
|
||||
stdenv.mkDerivation {
|
||||
inherit name;
|
||||
src = ./.;
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
gcc c-programs/${name}.c -o ${name}
|
||||
runHook postBuild
|
||||
'';
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/bin
|
||||
install ${name} $out/bin/
|
||||
runHook postInstall
|
||||
'';
|
||||
};
|
||||
in {
|
||||
assign1-hello = basic-c "hello";
|
||||
assign1-employee = basic-c "employee";
|
||||
assign1-logwriter = basic-c "logwriter";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue