~ehmry/nim-tkrzw

5488551404f3a98db08a9c13117c6aeeeed38c48 — Emery Hemingway 3 years ago bedb257
Cleanup flake.nix
2 files changed, 8 insertions(+), 47 deletions(-)

M flake.lock
M flake.nix
M flake.lock => flake.lock +1 -33
@@ 1,38 1,7 @@
{
  "nodes": {
    "nimble": {
      "inputs": {
        "nixpkgs": "nixpkgs"
      },
      "locked": {
        "lastModified": 1625134608,
        "narHash": "sha256-mCOGDdVNuGFRXfwpYOWhzUlFI57lwYVEGWXdSMEUdkA=",
        "owner": "nix-community",
        "repo": "flake-nimble",
        "rev": "8c4a056c22fa4efa358dc74048cbce70d5cf074e",
        "type": "github"
      },
      "original": {
        "id": "nimble",
        "type": "indirect"
      }
    },
    "nixpkgs": {
      "locked": {
        "lastModified": 1623747334,
        "narHash": "sha256-yGU7k1XzLhESNc9a6V84gzij6dybTzldgT5b5aU1RWU=",
        "owner": "NixOS",
        "repo": "nixpkgs",
        "rev": "84a4536e58ec7974fd08ee75ec1a4d40031088e4",
        "type": "github"
      },
      "original": {
        "id": "nixpkgs",
        "type": "indirect"
      }
    },
    "nixpkgs_2": {
      "locked": {
        "lastModified": 1628775176,
        "narHash": "sha256-TR1D/Fs0g2bHrPRgYFGdTEkA9ujCH+ZilzFcl8f4wBI=",
        "owner": "NixOS",


@@ 47,8 16,7 @@
    },
    "root": {
      "inputs": {
        "nimble": "nimble",
        "nixpkgs": "nixpkgs_2"
        "nixpkgs": "nixpkgs"
      }
    }
  },

M flake.nix => flake.nix +7 -14
@@ 1,24 1,17 @@
{
  description = "A set of implementations of DBM";
  description = "Development flake";

  outputs = { self, nixpkgs, nimble }:
  outputs = { self, nixpkgs }:
    let
      systems = [ "aarch64-linux" "x86_64-linux" ];
      forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
      forAllSystems = nixpkgs.lib.genAttrs systems;
    in {

      defaultPackage = forAllSystems (system:
        let
          pkgs = nixpkgs.legacyPackages.${system};
          nimpkgs = nimble.packages.${system};
        in with pkgs;
        stdenv.mkDerivation {
          pname = "tkrzw";
          version = "unstable-" + self.lastModifiedDate;
          src = self;
          nativeBuildInputs = [ nimpkgs.nim pkgconfig ];
      devShell = forAllSystems (system:
        with nixpkgs.legacyPackages.${system};
        pkgs.mkShell {
          nativeBuildInputs = [ nim pkg-config ];
          buildInputs = [ tkrzw ];
        });

    };
}