fake alias implementation
This commit is contained in:
18
default.nix
Normal file
18
default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
# simple.nix
|
||||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
in
|
||||
pkgs.stdenv.mkDerivation {
|
||||
name = "hello-nix";
|
||||
|
||||
src = ./.;
|
||||
|
||||
buildPhase = ''
|
||||
$CC simple.c -o hello_nix
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp hello_nix $out/bin/hello_nix
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user