Compare commits

..

No commits in common. "e08e916cbcb5da3394c5f0ea726df8524ac230f0" and "e026e133ed357210ae1b7edd9f67e74497ac9c5c" have entirely different histories.

4 changed files with 7 additions and 47 deletions

View File

@ -357,7 +357,7 @@
# (extraS|s)pecialArgs to pass variables
nixosModules = (import ./modules/nixos) 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 (
import ./pkgs { inherit pkgs; }) // {
iso = let

View File

@ -5,39 +5,26 @@
, rustPlatform
, fetchFromGitHub
, darwin
, pkg-config
, perl
, openssl
, nix-update-script
}:
rustPlatform.buildRustPackage rec {
pname = "redlib";
version = "0.35.1-unstable-2024-11-19";
version = "0.35.1-unstable-2024-11-15";
src = fetchFromGitHub {
owner = "redlib-org";
repo = "redlib";
rev = "18efb8c714ad10e0082059e1d47e0f95686d04a7";
hash = "sha256-Kzh0nSGxSqr4c6EvshqHdvqYbqiKCRehf2ngAuj2fmw=";
rev = "6c64ebd56b98f5616c2014e2e0567fa37791844c";
hash = "sha256-QXcjpIO1y6mi+4E2BC6O16TaLFfpcPcCHumuJBXmcoU=";
};
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 [
darwin.apple_sdk.frameworks.Security
] ++ lib.optionals stdenv.isLinux [
openssl
];
nativeBuildInputs = lib.optionals stdenv.isLinux [
pkg-config
perl
];
checkFlags = [
@ -66,7 +53,6 @@ rustPlatform.buildRustPackage rec {
env = {
SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
GIT_HASH=src.rev;
};
passthru.tests = {

View File

@ -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}");
}

View File

@ -3,24 +3,8 @@
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")"
nix flake update
[[ -n "${DO_FLAKE:+x}" ]] && nix flake update || true
if [[ -n "${DO_PACKAGES:+x}" ]] ; then
nix-update --flake redlib --version=branch=main
fi
nix-update --flake redlib --version=branch=main