Skip to content

Commit

Permalink
Merge pull request #37 from Liqwid-Labs/t4/no-ca
Browse files Browse the repository at this point in the history
  • Loading branch information
t4ccer authored Jan 3, 2023
2 parents c21e708 + ee6f4a5 commit 7371121
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
10 changes: 4 additions & 6 deletions nix/mk-hackage.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,10 @@ rec {
${pkgs.haskell-nix.nix-tools.${compiler-nix-name}}/bin/hackage-to-nix $out 01-index.tar "https://mkHackageNix/"
'';

copySrc = src: pkgs.runCommand "copied-src-${builtins.baseNameOf src}"
{
__contentAddressed = true;
} ''
cp -T -r ${src} $out
'';
copySrc = src: builtins.path {
path = src;
name = "copied-src-${builtins.baseNameOf (builtins.unsafeDiscardStringContext src)}";
};

mkModule = extraHackagePackages: {
# Prevent nix-build from trying to download the packages
Expand Down
1 change: 1 addition & 0 deletions nix/onchain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,7 @@ in
{
dependencies = [ hasktags ];
script = ''
# shellcheck disable=SC2046
hasktags -x ${haskellSources}
'';
help = ''
Expand Down
2 changes: 1 addition & 1 deletion templates/offchain/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Example Liqwid CTL project";

nixConfig = {
extra-experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
extra-experimental-features = [ "nix-command" "flakes" ];
extra-substituters = [ "https://cache.iog.io" "https://public-plutonomicon.cachix.org" "https://mlabs.cachix.org" ];
extra-trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" "public-plutonomicon.cachix.org-1:3AKJMhCLn32gri1drGuaZmFrmnue+KkKrhhubQk/CWc=" ];
allow-import-from-derivation = "true";
Expand Down
2 changes: 1 addition & 1 deletion templates/onchain/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "A liqwid-nix Plutarch project";

nixConfig = {
extra-experimental-features = [ "nix-command" "flakes" "ca-derivations" ];
extra-experimental-features = [ "nix-command" "flakes" ];
extra-substituters = [ "https://cache.iog.io" "https://public-plutonomicon.cachix.org" "https://mlabs.cachix.org" ];
extra-trusted-public-keys = [ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" "public-plutonomicon.cachix.org-1:3AKJMhCLn32gri1drGuaZmFrmnue+KkKrhhubQk/CWc=" ];
allow-import-from-derivation = "true";
Expand Down

0 comments on commit 7371121

Please sign in to comment.