Skip to content

Commit

Permalink
fix: forbidden string contexts in newer nix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Aug 13, 2022
1 parent e711b4a commit b9e46d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
allowSubstitutes = false;

name = "styx-${version}";
version = lib.fileContents ./VERSION;
version = builtins.unsafeDiscardStringContext (lib.fileContents ./VERSION);

src = lib.cleanSource ./.;

Expand Down
2 changes: 1 addition & 1 deletion nix/sources.nix
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ let
# The "config" used by the fetchers
mkConfig =
{ sourcesFile ? if builtins.pathExists ./sources.json then ./sources.json else null
, sources ? if isNull sourcesFile then {} else builtins.fromJSON (builtins.readFile sourcesFile)
, sources ? if isNull sourcesFile then {} else builtins.fromJSON (builtins.unsafeDiscardStringContext (builtins.readFile sourcesFile))
, system ? builtins.currentSystem
, pkgs ? mkPkgs sources system
}: rec {
Expand Down

0 comments on commit b9e46d1

Please sign in to comment.