10 rustPlatform.buildRustPackage rec {
17 hash = "sha256-+JJVuKUdnjJoQJ4a2EE0O6jZdVoFxPwbPgfD2LfiDPI=";
20 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
21 cargoHash = "sha256-XT4FQVE+buORuZAFZK5Qnf/Fl3QSvw4SHUuCzWhxUdk=";
23 # fac includes a unit test called ls_files_works which assumes it's
24 # running in a git repo. Nix's sandbox runs cargo build outside git,
25 # so this test won't work.
26 checkFlags = [ "--skip=ls_files_works" ];
28 # fac calls git at runtime, expecting it to be in the PATH,
29 # so we need to patch it to call git by absolute path instead.
31 substituteInPlace src/git.rs \
32 --replace 'std::process::Command::new("git")' \
33 'std::process::Command::new("${git}/bin/git")'
34 substituteInPlace tests/lib.rs \
35 --replace 'std::process::Command::new("git")' \
36 'std::process::Command::new("${git}/bin/git")'
40 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
42 A build system that uses ptrace to handle dependencies automatically
45 Fac is a general-purpose build system inspired by make that utilizes
46 ptrace to ensure that all dependences are enumerated and that all
47 source files are added to a (git) repo. An important feature of fac
48 is that it automatically handles dependencies, rather than either
49 complaining about them or giving an incorrect build. Currently, fac
50 only runs on linux systems, but on those systems it is incredibly
53 homepage = "https://physics.oregonstate.edu/~roundyd/fac";
54 license = licenses.gpl2Plus;
55 platforms = platforms.unix;
56 maintainers = with maintainers; [ dpercy ];