Browse Source

Initial commit

mca-cardano-ops
Craige McWhirter 2 years ago
parent
commit
d6a80aaf27
Signed by: craige GPG Key ID: 7DBA9F5689EFB6AA
  1. 2
      globals-defaults.nix
  2. 8
      nix/default.nix
  3. 28
      nix/sources.json
  4. 2
      release.nix
  5. 2
      shell.nix

2
globals-defaults.nix

@ -40,7 +40,7 @@ in {
withHighCapacityExplorer = false;
withHighLoadRelays = false;
environments = pkgs.iohkNix.cardanoLib.environments;
environments = pkgs.mcaNix.cardanoLib.environments;
environmentConfig =
__trace

8
nix/default.nix

@ -8,10 +8,10 @@ let
crystal = crystalPkgs.crystal_0_34;
# use our own nixpkgs if it exists in our sources,
# otherwise use iohkNix default nixpkgs.
# otherwise use mcaNix default nixpkgs.
defaultNixpkgs = if (defaultSourcePaths ? nixpkgs)
then defaultSourcePaths.nixpkgs
else (import defaultSourcePaths.iohk-nix {}).nixpkgs;
else (import defaultSourcePaths.mca-nix {}).nixpkgs;
sourcesOverride = let sourcesFile = ((import defaultNixpkgs { overlays = globals; }).globals).sourcesJsonOverride; in
if (builtins.pathExists sourcesFile)
@ -20,7 +20,7 @@ let
sourcePaths = defaultSourcePaths // sourcesOverride;
iohkNix = import sourcePaths.iohk-nix {};
mcaNix = import sourcePaths.mca-nix {};
nixpkgs = if (sourcesOverride ? nixpkgs) then sourcesOverride.nixpkgs else defaultNixpkgs;
@ -84,7 +84,7 @@ let
# merge upstream sources with our own:
upstream-overlay = self: super: {
inherit iohkNix;
inherit mcaNix;
cardano-ops = {
inherit overlays;
modules = self.importWithPkgs ../modules;

28
nix/sources.json

@ -108,28 +108,16 @@
"url": "https://github.com/input-output-hk/cardano-rosetta/archive/49c8cb51905759a86f9831c2c266dfab2e507dfd.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"iohk-nix": {
"branch": "master",
"description": "nix scripts shared across projects",
"mca-nix": {
"branch": "mca-nix",
"description": null,
"homepage": null,
"owner": "input-output-hk",
"repo": "iohk-nix",
"rev": "5b86d63a0b59b7666d19901b654d8fbde27d9500",
"sha256": "1mfb93nnw0x4gyq93v6lh6h7imliw4j0wp5l9gpdafy3rw621xzb",
"type": "tarball",
"url": "https://github.com/input-output-hk/iohk-nix/archive/5b86d63a0b59b7666d19901b654d8fbde27d9500.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs": {
"branch": "nixos-20.03",
"description": "Nix Packages collection",
"homepage": "",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "db31e48c5c8d99dcaf4e5883a96181f6ac4ad6f6",
"sha256": "1j5j7vbnq2i5zyl8498xrf490jca488iw6hylna3lfwji6rlcaqr",
"owner": "craigem",
"repo": "mca-nix",
"rev": "bfe7ba35de0e0ea995676c6bc8a9efc5f870358e",
"sha256": "1dbcv0gx6s0mk0hmv8glwbr250v93qrkqz15wkbvfm8f6m8i04hj",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/db31e48c5c8d99dcaf4e5883a96181f6ac4ad6f6.tar.gz",
"url": "https://github.com/craigem/mca-nix/archive/bfe7ba35de0e0ea995676c6bc8a9efc5f870358e.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"nixpkgs-crystal": {

2
release.nix

@ -26,7 +26,7 @@
, pkgs ? import ./nix { inherit sourcesOverride; }
}:
with import pkgs.iohkNix.release-lib {
with import pkgs.mcaNix.release-lib {
inherit pkgs;
inherit supportedSystems supportedCrossSystems scrubJobs projectArgs;

2
shell.nix

@ -54,7 +54,7 @@ in mkShell rec {
cardano-cli
create-shelley-genesis-and-keys
dnsutils
iohkNix.niv
mcaNix.niv
kes-rotation
nivOverrides
nix

Loading…
Cancel
Save