Compare commits
No commits in common. "e08e916cbcb5da3394c5f0ea726df8524ac230f0" and "e026e133ed357210ae1b7edd9f67e74497ac9c5c" have entirely different histories.
e08e916cbc
...
e026e133ed
@ -357,7 +357,7 @@
|
|||||||
# (extraS|s)pecialArgs to pass variables
|
# (extraS|s)pecialArgs to pass variables
|
||||||
nixosModules = (import ./modules/nixos) moduleInputs;
|
nixosModules = (import ./modules/nixos) moduleInputs;
|
||||||
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
homeManagerModules = (import ./modules/home-manager) moduleInputs;
|
||||||
packages = eachSystem (system: let pkgs = import nixpkgs-unstable { inherit system; };
|
packages = eachSystem (system: let pkgs = import nixpkgs { inherit system; };
|
||||||
in (
|
in (
|
||||||
import ./pkgs { inherit pkgs; }) // {
|
import ./pkgs { inherit pkgs; }) // {
|
||||||
iso = let
|
iso = let
|
||||||
|
@ -5,39 +5,26 @@
|
|||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, darwin
|
, darwin
|
||||||
, pkg-config
|
|
||||||
, perl
|
|
||||||
, openssl
|
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "redlib";
|
pname = "redlib";
|
||||||
version = "0.35.1-unstable-2024-11-19";
|
version = "0.35.1-unstable-2024-11-15";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "redlib-org";
|
owner = "redlib-org";
|
||||||
repo = "redlib";
|
repo = "redlib";
|
||||||
rev = "18efb8c714ad10e0082059e1d47e0f95686d04a7";
|
rev = "6c64ebd56b98f5616c2014e2e0567fa37791844c";
|
||||||
hash = "sha256-Kzh0nSGxSqr4c6EvshqHdvqYbqiKCRehf2ngAuj2fmw=";
|
hash = "sha256-QXcjpIO1y6mi+4E2BC6O16TaLFfpcPcCHumuJBXmcoU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# this is so the commit hash can be embedded so redlib doesn't complain
|
|
||||||
# about the server being outdated unless it's /actually/ outdated
|
|
||||||
./no-hash.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
cargoHash = "sha256-ZmIYTDfdMDkxT1doV5kMMjqIHQ/zhiY/ewd77RqRSMU=";
|
cargoHash = "sha256-tb+qTANios+dvNK775gqy0AmB5fuj5BhfYYYegnraEg=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [
|
buildInputs = lib.optionals stdenv.isDarwin [
|
||||||
darwin.apple_sdk.frameworks.Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
|
||||||
openssl
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
|
||||||
pkg-config
|
|
||||||
perl
|
|
||||||
];
|
];
|
||||||
|
|
||||||
checkFlags = [
|
checkFlags = [
|
||||||
@ -66,7 +53,6 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
env = {
|
env = {
|
||||||
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
||||||
GIT_HASH=src.rev;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
diff --git a/build.rs b/build.rs
|
|
||||||
index 0bdbda0..869c7e6 100644
|
|
||||||
--- a/build.rs
|
|
||||||
+++ b/build.rs
|
|
||||||
@@ -21,5 +21,4 @@ fn main() {
|
|
||||||
)
|
|
||||||
.unwrap_or_default();
|
|
||||||
let git_hash = if output == String::default() { "dev".into() } else { output };
|
|
||||||
- println!("cargo:rustc-env=GIT_HASH={git_hash}");
|
|
||||||
}
|
|
20
update.sh
20
update.sh
@ -3,24 +3,8 @@
|
|||||||
|
|
||||||
set -Eeuxo pipefail
|
set -Eeuxo pipefail
|
||||||
|
|
||||||
if [[ "$#" -ne 0 ]] ; then
|
|
||||||
until [[ "$#" -le 0 ]]; do
|
|
||||||
case "$1" in
|
|
||||||
pkgs|packages) DO_PACKAGES=1;;
|
|
||||||
flake) DO_FLAKE=1;;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
else
|
|
||||||
DO_PACKAGES=1
|
|
||||||
DO_FLAKE=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
|
nix flake update
|
||||||
|
|
||||||
[[ -n "${DO_FLAKE:+x}" ]] && nix flake update || true
|
nix-update --flake redlib --version=branch=main
|
||||||
|
|
||||||
if [[ -n "${DO_PACKAGES:+x}" ]] ; then
|
|
||||||
nix-update --flake redlib --version=branch=main
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user