initial nix channel

This commit is contained in:
Rongsong Shen 2025-05-22 16:52:19 +08:00
parent cce92912ff
commit ab0ad44ba0
2 changed files with 15 additions and 0 deletions

7
default.nix Normal file
View file

@ -0,0 +1,7 @@
# default.nix
{ pkgs ? import <nixpkgs> {} }:
{
my-package = pkgs.callPackage ./my-package.nix {};
# Add more packages here
}

8
my-package.nix Normal file
View file

@ -0,0 +1,8 @@
# my-package.nix
{ stdenv }:
stdenv.mkDerivation {
name = "my-package";
src = ./.;
installPhase = "mkdir -p $out; echo 'Hello, Nix!' > $out/hello";
}