commit a64815c100d1c09f70118ee85cb737e6ae7c9849
parent 412340b95bc6334c118486c33242d5e5ccf63137
Author: Jared Tobin <jared@jtobin.io>
Date: Sun, 25 Feb 2024 08:59:55 +0400
Remove subproject flake.
Diffstat:
2 files changed, 0 insertions(+), 120 deletions(-)
diff --git a/secp256k1-sys/flake.lock b/secp256k1-sys/flake.lock
@@ -1,61 +0,0 @@
-{
- "nodes": {
- "flake-utils": {
- "inputs": {
- "systems": "systems"
- },
- "locked": {
- "lastModified": 1705309234,
- "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
- "owner": "numtide",
- "repo": "flake-utils",
- "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "flake-utils",
- "type": "github"
- }
- },
- "nixpkgs": {
- "locked": {
- "lastModified": 1708751719,
- "narHash": "sha256-0uWOKSpXJXmXswOvDM5Vk3blB74apFB6rNGWV5IjoN0=",
- "owner": "NixOS",
- "repo": "nixpkgs",
- "rev": "f63ce824cd2f036216eb5f637dfef31e1a03ee89",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "ref": "nixpkgs-unstable",
- "repo": "nixpkgs",
- "type": "github"
- }
- },
- "root": {
- "inputs": {
- "flake-utils": "flake-utils",
- "nixpkgs": "nixpkgs"
- }
- },
- "systems": {
- "locked": {
- "lastModified": 1681028828,
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
- "owner": "nix-systems",
- "repo": "default",
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
- "type": "github"
- },
- "original": {
- "owner": "nix-systems",
- "repo": "default",
- "type": "github"
- }
- }
- },
- "root": "root",
- "version": 7
-}
diff --git a/secp256k1-sys/flake.nix b/secp256k1-sys/flake.nix
@@ -1,59 +0,0 @@
-{
- description = "secp256k1-sys";
-
- inputs = {
- nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
- flake-utils.url = "github:numtide/flake-utils";
- };
-
- outputs = { self, nixpkgs, flake-utils }:
- flake-utils.lib.eachDefaultSystem (system:
- let
- lib = "secp256k1-sys";
-
- config = {
- packageOverrides = super: let self = super.pkgs; in rec {
- haskell = super.haskell // {
- packageOverrides = self: super: {
- ${lib} = super.callCabal2nix lib ./. {};
- };
- };
- };
- };
-
- pkgs = import nixpkgs { inherit system; inherit config; };
- hpkgs = pkgs.haskell.packages.ghc964;
-
- cc = pkgs.stdenv.cc;
- ghc = hpkgs.ghc;
- cabal = hpkgs.cabal-install;
- in
- {
- packages.${lib} = hpkgs.${lib};
-
- defaultPackage = self.packages.${system}.${lib};
-
- devShells.default = hpkgs.shellFor {
- packages = p: [
- p.${lib}
- ];
-
- buildInputs = [
- cabal
- cc
- ];
-
- inputsFrom = builtins.attrValues self.packages.${system};
-
- shellHook = ''
- PS1="[${lib}] \w$ "
- echo "entering ${system} shell, using"
- echo "cc: $(${cc}/bin/cc --version)"
- echo "ghc: $(${ghc}/bin/ghc --version)"
- echo "cabal: $(${cabal}/bin/cabal --version)"
- '';
- };
- }
- );
-}
-