support nix-build

run `nix-build nix` to build without flakes
This commit is contained in:
Robin Bärtschi 2025-03-09 12:44:50 +01:00
parent 8748df6559
commit 9edcc92564
2 changed files with 6 additions and 1 deletions

4
nix/default.nix Normal file
View File

@ -0,0 +1,4 @@
# ml2 ts=2 sts=2 sw=2
with import <nixpkgs> {};
callPackage ./package.nix {}

View File

@ -1,7 +1,8 @@
# ml2 ts=2 sts=2 sw=2
{buildGoModule, version}: buildGoModule {
{buildGoModule, version ? "HEAD"}: buildGoModule {
pname = "tt";
inherit version;
# In 'nix develop', we don't need a copy of the source tree
# in the Nix store.
src = ./..;