Skip to content

Commit

Permalink
chore: nix flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeladler committed Dec 18, 2023
1 parent 451f786 commit 0b2c59e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@
buildInputs = [ xxHash ];
};

packages.default = pkgs.callPackage ./pkg.nix { };

});
}
7 changes: 3 additions & 4 deletions pkg.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{ stdenv, lib, meson, ninja, pkg-config, xxHash }:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
pname = "aoc-2023";
version = "0.1.1";
version = "0.1.0";

src = ./.;

nativeBuildInputs = [ meson ninja pkg-config ];

buildInputs = [ xxHash ];

NIX_LDFLAGS = "-lm";

# mesonFlags = [ "-Db_lto=true " ];
}

0 comments on commit 0b2c59e

Please sign in to comment.