Logo
Explore Help
Register Sign In
georgefst/garnet
1
0
Fork 0
You've already forked garnet
Code Issues Pull Requests 2 Actions Packages Projects Releases Wiki Activity
garnet/inputs.nix

8 lines
352 B
Nix
Raw Normal View History

Build Rust crate with Nix via crane sub-flake Move Rust build into its own flake at rust/flake.nix using crane, and reference it as an input from the top-level flake. The Haskell build gets the Rust artifacts (header + static lib) via a haskell.nix override that symlinks them into place before configure. Use Cabal's Cgarnet_rs naming convention for extra-bundled-libraries to satisfy the shared library install phase naming requirements. Also extract inputs.nix, default.nix, and shell.nix for flake-compat (nix-build / nix-shell) support.
2026-03-25 12:43:36 +09:00
(import
(let lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/${lock.nodes.flake-compat.locked.owner}/${lock.nodes.flake-compat.locked.repo}/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
}) { src = ./.; }
).outputs.inputs
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 53ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API