mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 04:17:56 +08:00
35 lines
693 B
Nix
35 lines
693 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) 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 [ ]) ++ [
|
|
openssl
|
|
];
|
|
})
|