1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-03 22:57:11 +03:00

Make it easier to build the project without using flakes

Make it possible to build it with `nix-build https://github.com/tweag/nickel/archive/master.tar.gz --arg fromGit false`
This commit is contained in:
regnat 2021-11-03 08:57:55 +01:00
parent 25a76c4288
commit 1f02b085c6

View File

@ -1,3 +1,4 @@
{ fromGit ? true }:
(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
src = builtins.fetchGit ./.;
src = if fromGit then builtins.fetchGit ./. else ./.;
}).defaultNix