1
0
Fork 0

Get rid of hFlush

This commit is contained in:
Malte Brandy 2020-06-02 04:55:49 +02:00
parent 123b6c56de
commit 7dd097c3f7
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9

View file

@ -1,7 +1,6 @@
self: super: self: super:
let let
bins = [ self.nix ]; bins = [ self.nix ];
imports = [ "System.IO (hFlush)" ];
repoSrc = "git@hera.m-0.eu:nixos-config"; repoSrc = "git@hera.m-0.eu:nixos-config";
configPath = "/etc/nixos"; configPath = "/etc/nixos";
systems = [ "apollo" "hera" ]; systems = [ "apollo" "hera" ];
@ -12,7 +11,6 @@ let
(configDir:hostname:args) <- getArgs (configDir:hostname:args) <- getArgs
paths <- myNixPath $ toText configDir paths <- myNixPath $ toText configDir
say [i|Trying to build ${name} config for #{hostname} ...|] say [i|Trying to build ${name} config for #{hostname} ...|]
hFlush stdout
${commandline} ${commandline}
say [i|Build of ${name} config for #{hostname} was successful.|] say [i|Build of ${name} config for #{hostname} was successful.|]
''; '';
@ -36,8 +34,13 @@ in {
test-config = self.writeHaskellScript { test-config = self.writeHaskellScript {
name = "test-config"; name = "test-config";
bins = bins = [
[ self.test-system-config self.test-home-config self.git self.niv self.git-crypt ]; self.test-system-config
self.test-home-config
self.git
self.niv
self.git-crypt
];
imports = [ "System.Directory (withCurrentDirectory)" ]; imports = [ "System.Directory (withCurrentDirectory)" ];
} '' } ''
checkout :: IO FilePath checkout :: IO FilePath