1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

snac2: build on darwin

This commit is contained in:
misuzu 2023-05-14 11:04:33 +03:00
parent 7c5d126b21
commit f56ad9d7de

View file

@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
"-Dst_mtim=st_mtimespec"
"-Dst_ctim=st_ctimespec"
]);
passthru = {
tests.version = testers.testVersion {
package = snac2;
@ -38,7 +43,7 @@ stdenv.mkDerivation rec {
changelog = "https://codeberg.org/grunfink/snac2/src/tag/${version}/RELEASE_NOTES.md";
license = licenses.mit;
maintainers = with maintainers; [ misuzu ];
platforms = platforms.linux;
platforms = platforms.unix;
mainProgram = "snac";
};
}