parent
ac072ca1c3
commit
e9fffbc3b6
7 changed files with 21 additions and 2 deletions
apps/update-sources/src
|
@ -1,10 +1,13 @@
|
|||
import { spawnSync } from 'node:child_process';
|
||||
import { styleText } from 'node:util';
|
||||
|
||||
|
||||
/* Constants */
|
||||
const FLAKE = process.env.FLAKE;
|
||||
|
||||
export const updateFlakeInputs = () => {
|
||||
console.log(styleText(['magenta'], '\nUpdating flake inputs:\n'));
|
||||
|
||||
const output = spawnSync(
|
||||
`git restore flake.lock &> /dev/null; nix flake update --flake ${FLAKE}` +
|
||||
' |& grep -v "warning: updating lock file" |& grep -v "unpacking"',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue