fake alias implementation

This commit is contained in:
2026-02-23 21:57:30 +01:00
parent 92fd9e5ea6
commit 90bc3b76a2
11 changed files with 101 additions and 1 deletions

18
default.nix Normal file
View 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
'';
}