Skip to content

Commit

Permalink
Merge pull request #42 from TeofilC/wip/casa
Browse files Browse the repository at this point in the history
Fetch cabal file revisions from casa
  • Loading branch information
cdepillabout authored Jan 12, 2024
2 parents 84694f4 + 3b6eee1 commit 8d5111a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 192 deletions.
14 changes: 8 additions & 6 deletions nix/build-support/stacklock2nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,14 @@ let
# file.
resolverParsed = readYAML resolverRawYaml;

fetchCabalFileRevision =
let
args =
lib.optionalAttrs (all-cabal-hashes != null) { inherit all-cabal-hashes; };
in
callPackage ./fetchCabalFileRevision.nix args;
# Fetch cabal revisions from the stackage content addressable store.
fetchCabalFileRevision = {name, version, hash}:
fetchurl {
pname = "${name}-cabal";
inherit version;
url = "https://casa.stackage.org/${hash}";
sha256 = hash;
};

# Replace the `.cabal` file in a given Haskell package with the revision
# specified by the given hash.
Expand Down
50 changes: 0 additions & 50 deletions nix/build-support/stacklock2nix/fetchCabalFileRevision.nix

This file was deleted.

136 changes: 0 additions & 136 deletions nix/build-support/stacklock2nix/fetchCabalFileRevisionBuilder.sh

This file was deleted.

0 comments on commit 8d5111a

Please sign in to comment.