mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-15 11:27:53 +08:00
36 lines
725 B
Nix
36 lines
725 B
Nix
{
|
|
nixpkgs ? <nixpkgs>,
|
|
system ? builtins.currentSystem,
|
|
pkgs ? import nixpkgs { inherit system; },
|
|
pimalaya ? import (fetchTarball "https://github.com/pimalaya/nix/archive/master.tar.gz"),
|
|
fenix ? import (fetchTarball "https://github.com/nix-community/fenix/archive/monthly.tar.gz") { },
|
|
}:
|
|
|
|
let
|
|
inherit (pkgs) cargo-deny openssl pkg-config;
|
|
|
|
shell = pimalaya.mkShell {
|
|
inherit
|
|
nixpkgs
|
|
system
|
|
pkgs
|
|
fenix
|
|
;
|
|
};
|
|
|
|
in
|
|
shell.overrideAttrs (prev: {
|
|
# LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
|
# openssl
|
|
# ];
|
|
|
|
nativeBuildInputs = (prev.nativeBuildInputs or [ ]) ++ [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = (prev.buildInputs or [ ]) ++ [
|
|
cargo-deny
|
|
openssl
|
|
];
|
|
})
|