From 41cec047b34823050bc579a9296b26e08dc5e8a6 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Mon, 9 Feb 2026 11:25:52 +0100 Subject: Change source of forstio in default --- default.nix | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index 85895d6..fd26b34 100644 --- a/default.nix +++ b/default.nix @@ -1,14 +1,34 @@ { pkgs ? import {} -, stdenv ? pkgs.llvmPackages_19.stdenv -, forstio ? (import ((builtins.fetchGit { - url = "git@git.keldu.de:forstio/forstio"; - ref = "dev"; - }).outPath + "/default.nix"){ - inherit stdenv; - }).forstio +, llvmPackages ? pkgs.llvmPackages_20 +, stdenv ? llvmPackages.stdenv +, clang-tools ? llvmPackages.clang-tools }: let + forstio = let + forstioSrc = stdenv.mkDerivation { + name = "forstio-src"; + + src = builtins.fetchurl { + url = "https://git.keldu.de/forstio-forstio/snapshot/master.tar.gz"; + sha256 = "e91c18fef798dd7b3afbd1615c2e320b90d74aa2d7ef726801a76e3f7f77ae81"; + }; + + phases = [ "unpackPhase" "installPhase" ]; + + unpackPhase = '' + mkdir source + tar -xzf "$src" -C source --strip-components=1 + ''; + + installPhase = '' + cp -r source $out + ''; + }; + in + (import "${forstioSrc}/default.nix" { + inherit stdenv clang-tools; + }).forstio; in { kel_rar = pkgs.callPackage ./run_and_record/.nix/derivation.nix { inherit stdenv forstio; -- cgit v1.2.3