summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-02-09 11:25:52 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-02-09 11:25:52 +0100
commit41cec047b34823050bc579a9296b26e08dc5e8a6 (patch)
tree1f940f7658e6ef8ca460b6f16365cadc215b9368 /default.nix
parent98df9bd946bf8f2651c53803b9e2b412b84c8497 (diff)
downloadapps-science_tools-41cec047b34823050bc579a9296b26e08dc5e8a6.tar.gz
Change source of forstio in default
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix34
1 files changed, 27 insertions, 7 deletions
diff --git a/default.nix b/default.nix
index 85895d6..fd26b34 100644
--- a/default.nix
+++ b/default.nix
@@ -1,14 +1,34 @@
{ pkgs ? import <nixpkgs> {}
-, 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;