Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
wip fixes (commit will be squashed)
Browse files Browse the repository at this point in the history
Co-authored-by: isabelroses <[email protected]>
  • Loading branch information
Sigmanificient and isabelroses committed May 6, 2024
1 parent e2607d7 commit 28db026
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 13 deletions.
2 changes: 2 additions & 0 deletions c/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ compile_commands.json
.direnv
.envrc
result

!flake.lock
16 changes: 16 additions & 0 deletions c/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
stdenv,
gnumake
}:
stdenv.mkDerivation {
name = "hello";

src = ./.;
nativeBuildInputs = [ gnumake ];

enableParallelBuilding = true;

installPhase = ''
install -D hello $out/bin/hello --mode 0755
'';
}
27 changes: 27 additions & 0 deletions c/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 2 additions & 13 deletions c/flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "Templates for getting started with Aux";
description = "Aux template for C project";

inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";

Expand Down Expand Up @@ -28,18 +28,7 @@

packages = forAllSystems (pkgs: rec {
default = hello;
hello = pkgs.stdenv.mkDerivation rec {
name = "hello";

src = ./.;
nativeBuildInputs = [ pkgs.gnumake ];

enableParallelBuilding = true;
V = 1;
installPhase = ''
install -D ${name} $out/bin/${name} --mode 0755
'';
};
hello = pkgs.callPackage ./default.nix {};
});

apps = forAllSystems (pkgs: rec {
Expand Down

0 comments on commit 28db026

Please sign in to comment.