Skip to content

Commit

Permalink
no rocksdb in default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Feb 28, 2024
1 parent f5c898a commit 5706403
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 2 additions & 2 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 15 additions & 10 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
url = "github:3noch/nix-bundle-exe";
flake = false;
};
gomod2nix-flake = {
gomod2nix = {
url = "github:nix-community/gomod2nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
};

outputs = { self, nixpkgs, nix-bundle-exe, gomod2nix-flake, flake-utils }:
outputs = { self, nixpkgs, nix-bundle-exe, gomod2nix, flake-utils }:
let
rev = self.shortRev or "dirty";
mkApp = drv: {
Expand All @@ -28,7 +28,7 @@
inherit system;
overlays = [
(import ./nix/build_overlay.nix)
gomod2nix-flake.overlays.default
gomod2nix.overlays.default
self.overlay
];
config = { };
Expand All @@ -44,19 +44,24 @@
};
defaultPackage = packages.cronosd;
defaultApp = apps.cronosd;
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
go
rocksdb
gomod2nix
];
devShells = {
default = pkgs.mkShell {
buildInputs = [
defaultPackage.vendorEnv
];
};
rocksdb = pkgs.mkShell {
buildInputs = [
pkgs.rocksdb
defaultPackage.vendorEnv
];
};
};
legacyPackages = pkgs;
}
)
) // {
overlay = final: super: {
go = super.go_1_22;
bundle-exe = final.pkgsBuildBuild.callPackage nix-bundle-exe { };
# make-tarball don't follow symbolic links to avoid duplicate file, the bundle should have no external references.
# reset the ownership and permissions to make the extract result more normal.
Expand Down

0 comments on commit 5706403

Please sign in to comment.