Skip to content

Commit

Permalink
try my hardest to get this to build
Browse files Browse the repository at this point in the history
but in the end this sfackler guy's
maintainer-induced dementia [makes
this impossible](sfackler/rust-openssl#2122) so :P
  • Loading branch information
Nowaaru committed Mar 29, 2024
1 parent 05aa252 commit 4e804b8
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ reqwest = { version = "0.12.1", features = ["blocking", "json"] }
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
tokio = { version = "1.36.0", features = ["full"] }

[patch.'https://github.com/sfackler/rust-openssl']
openssl = { git = 'https://github.com/DanielSidhion/rust-openssl.git', branch = 'propagate-openssl-dir-vendored' }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [ ] ~~submitting lockfile to store~~
- [ ] use `nmm get-store` every home manager generation
- [ ] use `fetchStoreMod` with provider + game id + mod id args to retrieve store mod
- [ ] [wait for these damn devs to stop neglecting the nix community](https://github.com/sfackler/rust-openssl/pull/2122)

nix-mod-manager is a currently presented with a problem that
forces users to have to fetch the hash of a request (a de facto orobouros problem).
Expand Down
33 changes: 33 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
rustPlatform,


rustc,
cargo,
pkg-config,
openssl,

}:
rustPlatform.buildRustPackage rec {
pname = "nmm-cli";
version = "0.0.1";

src = lib.cleanSource ./.;

nativeBuildInputs = [ rustc cargo openssl.dev pkg-config ];

cargoLock.lockFile = ./Cargo.lock;

buildPhase = ''
export HOME=$(pwd)
'';

meta = with lib; {
description = "A fast line-oriented regex search tool, similar to ag and ack";
homepage = "https://github.com/BurntSushi/ripgrep";
license = licenses.unlicense;
maintainers = [];
};
}

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [inputs.rust-overlay.overlays.default];
overlays = [
inputs.rust-overlay.overlays.default
];
};
in {
packages.x86_64-linux.default = pkgs.callPackage ./. {};

devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
rust-bin.stable.latest.default
Expand Down

0 comments on commit 4e804b8

Please sign in to comment.