summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-12-06 12:10:31 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2023-12-06 12:10:31 +0100
commit2c942c78c61e2ffb84382d2efe41180710939836 (patch)
tree5faf5a0557ce6ca8768ebee12f7510a59573686a
parente39d148af75225b0d46cc63f15bad853a7a5ce6a (diff)
downloadfork-ledger-2c942c78c61e2ffb84382d2efe41180710939836.tar.gz
fork-ledger-2c942c78c61e2ffb84382d2efe41180710939836.tar.bz2
fork-ledger-2c942c78c61e2ffb84382d2efe41180710939836.zip
acprep: Add support for nix develop on macOS
-rwxr-xr-xacprep7
1 files changed, 7 insertions, 0 deletions
diff --git a/acprep b/acprep
index 1ebc0ef2..13032e39 100755
--- a/acprep
+++ b/acprep
@@ -515,6 +515,13 @@ class PrepareBuild(CommandLineApp):
self.log.info('Looks like you are using Fink on macOS')
self.log.error("I don't know the package names for Fink yet!")
sys.exit(1)
+ elif shutil.which('nix'):
+ self.log.info('Looks like you are using Nixpkgs on macOS')
+ packages = [
+ 'nix', 'develop',
+ ]
+ self.log.info('Executing: ' + ' '.join(packages))
+ self.execute(*packages)
elif system == 'Linux':
if exists('/etc/issue'):