🏡 index : ~doyle/shorty.git

author Jordan Doyle <jordan@doyle.la> 2023-05-24 0:02:46.0 +00:00:00
committer Jordan Doyle <jordan@doyle.la> 2023-05-24 0:02:46.0 +00:00:00
commit
fb94265be0429e4ba40c2f96845105ff520f8526 [patch]
tree
6e1d70565ecdbd7f89e9a8f683e50422a0518285
parent
647c8aa63634dc84f9ce8e489241fa02c9ddb3b3
download
fb94265be0429e4ba40c2f96845105ff520f8526.tar.gz

Add flake.nix



Diff

 .gitignore |  1 +-
 flake.lock | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 flake.nix  | 17 +++++++++++-
 3 files changed, 113 insertions(+)

diff --git a/.gitignore b/.gitignore
index c403c34..d3e5a9a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/target
.idea/
/result
diff --git a/flake.lock b/flake.lock
new file mode 100644
index 0000000..2b0a7ff
--- /dev/null
+++ b/flake.lock
@@ -0,0 +1,95 @@
{
  "nodes": {
    "naersk": {
      "inputs": {
        "nixpkgs": "nixpkgs"
      },
      "locked": {
        "lastModified": 1679567394,
        "narHash": "sha256-ZvLuzPeARDLiQUt6zSZFGOs+HZmE+3g4QURc8mkBsfM=",
        "owner": "nix-community",
        "repo": "naersk",
        "rev": "88cd22380154a2c36799fe8098888f0f59861a15",
        "type": "github"
      },
      "original": {
        "owner": "nix-community",
        "ref": "master",
        "repo": "naersk",
        "type": "github"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1684759798,
        "narHash": "sha256-Kpbf5yKvKcj/yPqE1zYC6gju4JwTsYxTIZEvOII0jr4=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "c7eb65213bd7d95eafb8c5e2e181f04da103d054",
        "type": "github"
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
      }
    },
    "nixpkgs_2": {
      "locked": {
        "lastModified": 1684759798,
        "narHash": "sha256-Kpbf5yKvKcj/yPqE1zYC6gju4JwTsYxTIZEvOII0jr4=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "c7eb65213bd7d95eafb8c5e2e181f04da103d054",
        "type": "github"
      },
      "original": {
        "owner": "NixOS",
        "ref": "nixpkgs-unstable",
        "repo": "nixpkgs",
        "type": "github"
      }
    },
    "root": {
      "inputs": {
        "naersk": "naersk",
        "nixpkgs": "nixpkgs_2",
        "utils": "utils"
      }
    },
    "systems": {
      "locked": {
        "lastModified": 1681028828,
        "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
        "owner": "nix-systems",
        "repo": "default",
        "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
        "type": "github"
      },
      "original": {
        "owner": "nix-systems",
        "repo": "default",
        "type": "github"
      }
    },
    "utils": {
      "inputs": {
        "systems": "systems"
      },
      "locked": {
        "lastModified": 1681202837,
        "narHash": "sha256-H+Rh19JDwRtpVPAWp64F+rlEtxUWBAQW28eAi3SRSzg=",
        "owner": "numtide",
        "repo": "flake-utils",
        "rev": "cfacdce06f30d2b68473a46042957675eebb3401",
        "type": "github"
      },
      "original": {
        "owner": "numtide",
        "repo": "flake-utils",
        "type": "github"
      }
    }
  },
  "root": "root",
  "version": 7
}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..509af85
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,17 @@
{
  inputs = {
    naersk.url = "github:nix-community/naersk/master";
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    utils.url = "github:numtide/flake-utils";
  };

  outputs = { self, nixpkgs, utils, naersk }:
    utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };
        naersk-lib = pkgs.callPackage naersk { };
      in
      {
        defaultPackage = naersk-lib.buildPackage ./.;
      });
}