From 30401cbc9d3e693e0d2ad5b24f20bdb7175c4da5 Mon Sep 17 00:00:00 2001 From: DavHau Date: Fri, 3 Jun 2022 15:13:51 +0200 Subject: [PATCH] fix example for haskell --- examples/haskell-cabal2json/flake.nix | 11 ++++------- .../haskell/translators/stack-lock/default.nix | 2 -- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/examples/haskell-cabal2json/flake.nix b/examples/haskell-cabal2json/flake.nix index de88a199..1d9bb504 100644 --- a/examples/haskell-cabal2json/flake.nix +++ b/examples/haskell-cabal2json/flake.nix @@ -9,14 +9,11 @@ self, dream2nix, src, - } @ inp: let - dream2nix = inp.dream2nix.lib2.init { - systems = ["x86_64-linux"]; - config.projectRoot = ./.; - }; - in - (dream2nix.makeFlakeOutputs { + } @ inp: + (dream2nix.lib.makeFlakeOutputs { + pkgs = dream2nix.inputs.nixpkgs.legacyPackages.x86_64-linux; source = src; + config.projectRoot = ./.; settings = [ { subsystemInfo.noDev = true; diff --git a/src/subsystems/haskell/translators/stack-lock/default.nix b/src/subsystems/haskell/translators/stack-lock/default.nix index dd36ccb9..b3e33900 100644 --- a/src/subsystems/haskell/translators/stack-lock/default.nix +++ b/src/subsystems/haskell/translators/stack-lock/default.nix @@ -129,8 +129,6 @@ in { snapshotYamlFile = builtins.fetchurl { url = snapshotEntry.completed.url; sha256 = snapshotEntry.completed.sha256; - # This is a plain text file, therefore enable http compression - curlOpts = "--compressed"; }; snapshot = haskellUtils.fromYaml snapshotYamlFile;